wpseo_indexable_included_post_types

wpseo_indexable_included_post_types

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.20.3

apply_filters('wpseo_indexable_included_post_types') is found 1 times:

  • /src/actions/indexables-page-action.php line 78
    		 * be shown in the indexables overview cards.
    		 *
    		 * @param array $included_post_types The currently included post types.
    		 */
    		$included_post_types = \apply_filters( 'wpseo_indexable_included_post_types', [ 'post', 'page' ] );
    		$object_sub_types    = \array_diff( $object_sub_types, $excluded_post_types );
    		$only_post_pages     = \array_intersect( $object_sub_types, $included_post_types );
    
    		$wanted_sub_types = [];
    		foreach ( $only_post_pages as $sub_type ) {
    			if ( $this->post_type_helper->has_metabox( $sub_type ) ) {