wppaste
WordPress

apply_filters( 'quick_edit_enabled_for_post_type', bool $enable, string $post_type )

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

Compatibility

WordPress
since 6.4.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$enablebool
Whether to enable the Quick Edit functionality. Default true.
$post_typestring
Post type name.

Where this hook fires · 2

  • wp-admin/includes/class-wp-posts-list-table.php:1275WP_Posts_List_Table::column_title()
  • wp-admin/includes/class-wp-posts-list-table.php:1601WP_Posts_List_Table::handle_row_actions()

Source code

			 *			 * @since 6.4.0			 *			 * @param bool   $enable    Whether to enable the Quick Edit functionality. Default true.			 * @param string $post_type Post type name.			 */			$quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type ); 			if ( $quick_edit_enabled && 'wp_block' !== $post->post_type ) {				$actions['inline hide-if-no-js'] = sprintf(					'<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>',					/* translators: %s: Post title. */					esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $title ) ),

Changelog

Introduced in 6.4.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 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.