Make WordPress Core

Opened 9 years ago

Closed 14 months ago

#40311 closed enhancement (duplicate)

Disable inline edit post via filter

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

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 9 years ago.

Download all attachments as: .zip

Change History (7)

#1 @sebastian.pisula
9 years ago

  • Keywords has-patch added

#2 @johnbillion
9 years ago

  • Keywords needs-refresh added
  • Milestone Awaiting ReviewFuture 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
9 years ago

  • Type feature requestenhancement

#4 @jorbin
14 months 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
14 months 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
14 months ago

  • Component Posts, Post TypesQuick/Bulk Edit
  • Keywords needs-refresh removed
  • Milestone Future Release
  • Resolutionduplicate
  • Status newclosed

Duplicate of #16502.

[56611] added the quick_edit_enabled_for_post_type hook.

Note: See TracTickets for help on using tickets.