apply_filters( 'quick_edit_statuses', \array<string,string> $inline_edit_statuses, string $post_type, bool $bulk, bool $can_publish )
- Since
- 6.9.0
Filters the statuses available in the Quick Edit and Bulk Edit UI.
Compatibility
- WordPress
- since 6.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in 3 of the 5 tracked releases, added in 6.9.0.
Parameters
$inline_edit_statuses\array<string,string>- An array of statuses available in the Quick Edit UI.
$post_typestring- The post type slug.
$bulkbool- A flag to denote if it's a bulk action.
$can_publishbool- A flag to denote if the user can publish posts.
Where this hook fires · 1
wp-admin/includes/class-wp-posts-list-table.php:2116WP_Posts_List_Table::inline_edit()
Source code
* * @param array<string,string> $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. */ $inline_edit_statuses = apply_filters( 'quick_edit_statuses', $inline_edit_statuses, $screen->post_type, $bulk, $can_publish ); foreach ( $inline_edit_statuses as $inline_status_value => $inline_status_text ) : ?> <option value="<?php echo esc_attr( $inline_status_value ); ?>"><?php echo esc_attr( $inline_status_text ); ?></option> <?php endforeach;Changelog
Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.