wpseo_sitemap_exclude_empty_terms_taxonomy

wpseo_sitemap_exclude_empty_terms_taxonomy

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.22.3

apply_filters('wpseo_sitemap_exclude_empty_terms_taxonomy') is found 2 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',
    			];
    
  • /inc/sitemaps/class-taxonomy-sitemap-provider.php line 197
     
    		/** This filter is documented in inc/sitemaps/class-taxonomy-sitemap-provider.php */
    		$hide_empty = apply_filters( 'wpseo_sitemap_exclude_empty_terms', true, [ $taxonomy->name ] );
    		/** This filter is documented in inc/sitemaps/class-taxonomy-sitemap-provider.php */
    		$hide_empty_tax = apply_filters( 'wpseo_sitemap_exclude_empty_terms_taxonomy', $hide_empty, $taxonomy->name );
    		$terms          = get_terms(
    			[
    				'taxonomy'               => $taxonomy->name,
    				'hide_empty'             => $hide_empty_tax,
    				'update_term_meta_cache' => false,
    				'offset'                 => $offset,