quick_edit_enabled_for_post_type filter-hookWP 6.4.0

Filters whether Quick Edit should be enabled for the given post type.

Usage

add_filter( 'quick_edit_enabled_for_post_type', 'wp_kama_quick_edit_enabled_for_post_type_filter', 10, 2 );

/**
 * Function for `quick_edit_enabled_for_post_type` filter-hook.
 * 
 * @param bool   $enable    Whether to enable the Quick Edit functionality.
 * @param string $post_type Post type name.
 *
 * @return bool
 */
function wp_kama_quick_edit_enabled_for_post_type_filter( $enable, $post_type ){

	// filter...
	return $enable;
}
$enable(true|false)
Whether to enable the Quick Edit functionality.
Default: true
$post_type(string)
Post type name.

Changelog

Since 6.4.0 Introduced.

Where the hook is called

WP_Posts_List_Table::handle_row_actions()
quick_edit_enabled_for_post_type
WP_Posts_List_Table::column_title()
quick_edit_enabled_for_post_type
wp-admin/includes/class-wp-posts-list-table.php 1491
$quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type );
wp-admin/includes/class-wp-posts-list-table.php 1172
$quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type );

Where the hook is used in WordPress

Usage not found.