wpseo_exclude_from_sitemap_by_term_ids

wpseo_exclude_from_sitemap_by_term_ids

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

See hook in core

Displaying hooks found in version: wordpress-seo.23.9

apply_filters('wpseo_exclude_from_sitemap_by_term_ids') is found 1 times:

  • /inc/sitemaps/class-taxonomy-sitemap-provider.php line 238
    		 * Filter: 'wpseo_exclude_from_sitemap_by_term_ids' - Allow excluding terms by ID.
    		 *
    		 * @param array $terms_to_exclude The terms to exclude.
    		 */
    		$terms_to_exclude = apply_filters( 'wpseo_exclude_from_sitemap_by_term_ids', [] );
    
    		foreach ( $terms as $term ) {
    
    			if ( in_array( $term->term_id, $terms_to_exclude, true ) ) {
    				continue;
    			}