sm_exclude_from_sitemap_by_post_ids

sm_exclude_from_sitemap_by_post_ids

Hook Type: filter

See hook in core

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

apply_filters('sm_exclude_from_sitemap_by_post_ids') is found 1 times:

  • /sitemap-core.php line 1207
    		 * Filter: 'sm_exclude_from_sitemap_by_post_ids' - Allow extending and modifying the posts to exclude.
    		 *
    		 * @param array $posts_to_exclude The posts to exclude.
    		 */
    		$posts_to_exclude = apply_filters( 'sm_exclude_from_sitemap_by_post_ids', $posts_to_exclude );
    		if ( ! is_array( $posts_to_exclude ) ) {
    			$posts_to_exclude = [];
    		}
    
    		$excluded_posts_ids = array_merge( $excluded_posts_ids, $posts_to_exclude );