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.24.8.1

apply_filters('wpseo_sitemap_exclude_empty_terms_taxonomy') is found 2 times:

  • /inc/sitemaps/class-taxonomy-sitemap-provider.php line 94
    090
    091
    092
    093
    094
    095
    096
    097
    098
    099
    100
    *
     * @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
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    /** 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,