quick_edit_statuses filter-hookWP 6.9.0

Filters the statuses available in the Quick Edit and Bulk Edit UI.

Usage

add_filter( 'quick_edit_statuses', 'wp_kama_quick_edit_statuses_filter', 10, 4 );

/**
 * Function for `quick_edit_statuses` filter-hook.
 * 
 * @param array $inline_edit_statuses An array of statuses available in the Quick Edit UI.
 * @param string               $post_type            The post type slug.
 * @param bool                 $bulk                 A flag to denote if it's a bulk action.
 * @param bool                 $can_publish          A flag to denote if the user can publish posts.
 *
 * @return array
 */
function wp_kama_quick_edit_statuses_filter( $inline_edit_statuses, $post_type, $bulk, $can_publish ){

	// filter...
	return $inline_edit_statuses;
}
$inline_edit_statuses(array<string,string>)
An array of statuses available in the Quick Edit UI.
$post_type(string)
The post type slug.
$bulk(true|false)
A flag to denote if it's a bulk action.
$can_publish(true|false)
A flag to denote if the user can publish posts.

Changelog

Since 6.9.0 Introduced.

Where the hook is called

WP_Posts_List_Table::inline_edit()
quick_edit_statuses
wp-admin/includes/class-wp-posts-list-table.php 2015
$inline_edit_statuses = apply_filters( 'quick_edit_statuses', $inline_edit_statuses, $screen->post_type, $bulk, $can_publish );

Where the hook is used in WordPress

Usage not found.