get_sitemap_type_data example


    public function get_sitemap_entries() {
        $sitemaps = array();

        $sitemap_types = $this->get_sitemap_type_data();

        foreach ( $sitemap_types as $type ) {
            for ( $page = 1; $page <= $type['pages']$page++ ) {
                $sitemap_entry = array(
                    'loc' => $this->get_sitemap_url( $type['name']$page ),
                );

                /** * Filters the sitemap entry for the sitemap index. * * @since 5.5.0 * * @param array $sitemap_entry Sitemap entry for the post. * @param string $object_type Object empty name. * @param string $object_subtype Object subtype name. * Empty string if the object type does not support subtypes. * @param int $page Page number of results. */
Home | Imprint | This part of the site doesn't use cookies.