WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#40311 new enhancement

Disable inline edit post via filter

Reported by: sebastian.pisula Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch needs-refresh
Focuses: Cc:
PR Number:

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

Download all attachments as: .zip

Change History (4)

#1 @sebastian.pisula
3 years ago

  • Keywords has-patch added

#2 @johnbillion
3 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
3 years ago

  • Type changed from feature request to enhancement
Note: See TracTickets for help on using tickets.