sm_sitemap_exclude_taxonomy

sm_sitemap_exclude_taxonomy

Hook Type: filter

See hook in core

Displaying hooks found in version: google-sitemap-generator.4.1.21

apply_filters('sm_sitemap_exclude_taxonomy') is found 1 times:

  • /class-googlesitemapgeneratorstandardbuilder.php line 891
    		 * @param array $taxonomies_to_exclude The taxonomies to exclude.
    		 */
    		$taxonomies_to_exclude = [];
    		$default_taxonomies_to_exclude = [ 'product_tag', 'product_cat' ];
    		$taxonomies_to_exclude = apply_filters( 'sm_sitemap_exclude_taxonomy', $taxonomies_to_exclude );
    		if ( ! is_array( $taxonomies_to_exclude ) || empty( $taxonomies_to_exclude ) ) {
    			$taxonomies_to_exclude = $default_taxonomies_to_exclude;
    		} else {
    			$taxonomies_to_exclude = array_merge( $taxonomies_to_exclude, $default_taxonomies_to_exclude );
    		}
    		$enabled_taxonomies = $this->get_enabled_taxonomies( $gsg );