[wp-trac] [WordPress Trac] #51291: Add filter to show post list table `column_cb` even without `edit_post` capability

WordPress Trac noreply at wordpress.org
Fri Jan 8 16:23:33 UTC 2021


#51291: Add filter to show post list table `column_cb` even without `edit_post`
capability
-------------------------------------------------+-------------------------
 Reporter:  coreyw                               |       Owner:
                                                 |  johnbillion
     Type:  enhancement                          |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.7
Component:  Posts, Post Types                    |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug needs-testing has-    |     Focuses:
  patch                                          |  administration
-------------------------------------------------+-------------------------

Comment (by alexstine):

 @johnbillion Makes sense. current_user_can() returns true/false, so
 perfect way to use for this situation.

 Updated the PR.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51291#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list