wpseo_sitemap_exclude_empty_terms, true, $taxonomy_names

wpseo_sitemap_exclude_empty_terms, true, $taxonomy_names

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.28.1

apply_filters('wpseo_sitemap_exclude_empty_terms, true, $taxonomy_names') is found 1 times:

  • /inc/sitemaps/class-taxonomy-sitemap-provider.php line 83
    		 *
    		 * @param bool  $exclude        Defaults to true.
    		 * @param array $taxonomy_names Array of names for the taxonomies being processed.
    		 */
    		$hide_empty = apply_filters( 'wpseo_sitemap_exclude_empty_terms', true, $taxonomy_names );
    
    		$all_taxonomies = [];
    
    		foreach ( $taxonomy_names as $taxonomy_name ) {
    			/**
    			 * Filter the setting of excluding empty terms from the XML sitemap for a specific taxonomy.