• Recently i Capability Permissions for Editor for a CUSTOM POST Type… by this code (changes in wp-admin/include/meta-boxes.php (line 18.)
    <?php
    // $can_publish = current_user_can($post_type_object->cap->publish_posts);
    if(($post_type == ‘videos’) && ($role !=’administrator’))
    {
    $can_publish = 0;
    }
    else
    {
    $can_publish = current_user_can($post_type_object->cap->publish_posts);
    }
    ? >

  • The topic ‘Capability Permissions for Editor for a CUSTOM POST Type’ is closed to new replies.