wpseo_bulk_editor_excluded_post_types, [ attachment ]

wpseo_bulk_editor_excluded_post_types, [ attachment ]

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.28.2

apply_filters('wpseo_bulk_editor_excluded_post_types, [ attachment ]') is found 1 times:

  • /src/bulk-editor/infrastructure/content-types/content-types-collector.php line 84
    		 * Filter: 'wpseo_bulk_editor_excluded_post_types' - Allows excluding post types from the bulk editor.
    		 *
    		 * @param array<string> $excluded_post_types The list of post types excluded from the bulk editor. Defaults to including the attachment post type.
    		 */
    		$excluded_post_types = \apply_filters( 'wpseo_bulk_editor_excluded_post_types', [ 'attachment' ] );
    
    		// Failsafe, to always make sure that the filtered value is an array.
    		if ( ! \is_array( $excluded_post_types ) ) {
    			return [ 'attachment' ];
    		}