Make WordPress Core

Opened 8 years ago

Closed 11 days ago

#40311 closed enhancement (duplicate)

Disable inline edit post via filter

Reported by: sebastianpisula's profile sebastian.pisula Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Quick/Bulk Edit Keywords: has-patch
Focuses: Cc:

Description

I suggest add new filter:

disable_inline_edit_post

if true inline edit is disable.

Attachments (1)

40311.patch (2.4 KB) - added by sebastian.pisula 8 years ago.

Download all attachments as: .zip

Change History (7)

#1 @sebastian.pisula
8 years ago

  • Keywords has-patch added

#2 @johnbillion
8 years ago

  • Keywords needs-refresh added
  • Milestone changed from Awaiting Review to Future Release

Thanks for the patch, @sebastian.pisula! I agree this filter will be useful. It's a bit hacky removing Quick Edit otherwise.

The filter name should be changed to disable_inline_edit_post with a default value of true. This avoids the double negative of 'disable_inline_edit_post', false.

#3 @johnbillion
8 years ago

  • Type changed from feature request to enhancement

#4 @jorbin
12 days ago

I disagree slightly with @johnbillion on this. I think that disable_inline_edit_post with a default value of TRUE says to me that by default inline edit post is disabled. I think that enable_inline_edit_post with a default value of TRUE says that it is turned on and an extender can return false to not have it be enabled.

#5 @sukhendu2002
12 days ago

As of WordPress 6.4.0, there is already a filter called quick_edit_enabled_for_post_type that provides this functionality. This filter can be used to disable inline editing for specific post type.

#6 @sabernhardt
11 days ago

  • Component changed from Posts, Post Types to Quick/Bulk Edit
  • Keywords needs-refresh removed
  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #16502.

[56611] added the quick_edit_enabled_for_post_type hook.

Note: See TracTickets for help on using tickets.