sm_sitemap_include_post_type

sm_sitemap_include_post_type

Hook Type: filter

See hook in core

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

apply_filters('sm_sitemap_include_post_type') is found 1 times:

  • /sitemap-core.php line 1174
    			 *
    			 * @param array $post_types_to_include The post types to include.
    			 */
    			$post_types_to_include = [];
    			$post_types_to_include = apply_filters( 'sm_sitemap_include_post_type', $post_types_to_include );
    			if ( ! is_array( $post_types_to_include ) ) {
    				$post_types_to_include = [];
    			}
    			if ( ! empty( $post_types_to_include ) ) {
    				$active_post_types = array_merge( $active_post_types, $post_types_to_include );
    				$active_post_types = array_unique( $active_post_types );