wpseo_indexable_excluded_post_types

wpseo_indexable_excluded_post_types

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-seo.24.1

apply_filters('wpseo_indexable_excluded_post_types') is found 1 times:

  • /src/helpers/post-type-helper.php line 108
    		 * type from being saved to the indexable table.
    		 *
    		 * @param array $excluded_post_types The currently excluded post types that indexables will not be created for.
    		 */
    		$excluded_post_types = \apply_filters( 'wpseo_indexable_excluded_post_types', [] );
    
    		// Failsafe, to always make sure that `excluded_post_types` is an array.
    		if ( ! \is_array( $excluded_post_types ) ) {
    			return [];
    		}
    
    

See this hook used in plugins: