wpseo_sitemap_exclude_empty_terms_taxonomy, $hide_empty, $taxonomy_name

wpseo_sitemap_exclude_empty_terms_taxonomy, $hide_empty, $taxonomy_name

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_taxonomy, $hide_empty, $taxonomy_name') is found 1 times:

  • /inc/sitemaps/class-taxonomy-sitemap-provider.php line 94
    			 *
    			 * @param bool   $exclude       Defaults to the sitewide setting.
    			 * @param string $taxonomy_name The name of the taxonomy being processed.
    			 */
    			$hide_empty_tax = apply_filters( 'wpseo_sitemap_exclude_empty_terms_taxonomy', $hide_empty, $taxonomy_name );
    
    			$term_args      = [
    				'taxonomy'   => $taxonomy_name,
    				'hide_empty' => $hide_empty_tax,
    				'fields'     => 'ids',
    			];