sm_sitemap_exclude_post_types

sm_sitemap_exclude_post_types

Hook Type: filter

See hook in core

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

apply_filters('sm_sitemap_exclude_post_types') is found 1 times:

  • /sitemap-core.php line 1156
    			 *
    			 * @param array $post_types_to_exclude The post types to exclude.
    			 */
    			$post_types_to_exclude = [];
    			$post_types_to_exclude = apply_filters( 'sm_sitemap_exclude_post_types', $post_types_to_exclude );
    			if ( ! is_array( $post_types_to_exclude ) ) {
    				$post_types_to_exclude = [];
    			}
    			if ( ! empty( $post_types_to_exclude ) ) {
    				foreach ( $active_post_types as $key => $active_post_type ) {
    					if ( in_array( $active_post_type, $post_types_to_exclude ) ) {