Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #32739


Ignore:
Timestamp:
06/20/2015 08:35:27 PM (11 years ago)
Author:
ocean90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32739

    • Property Summary Allow Non-administrators to Access the Customizer (Not Working)Allow Non-administrators to Access the Customizer
    • Property Version 4.2.24.2
  • Ticket #32739 – Description

    initial v1  
    11The following code added to function file is the stated way to provide access to the customizer for users with "edit_posts" capabilities.
    22
    3 ********************************
    43
     4{{{
    55function allow_users_who_can_edit_posts_to_customize( $caps, $cap, $user_id ) {
    66    $required_cap = 'edit_posts';
     
    1111}
    1212add_filter( 'map_meta_cap', 'allow_users_who_can_edit_posts_to_customize', 10, 3 );
     13}}}
    1314
    14 ********************************
    1515
    1616The Probblem; Outside of the admin, eligible users are shown the customizer link in the toolbar, but when they click the link they get "Cheating,'uh" accusation rather than the customizer.