WordPress.org

Ready to get started?Download WordPress

Forums

Capability Permissions for Editor for a CUSTOM POST Type (1 post)

  1. w3digg
    Member
    Posted 3 years ago #

    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);
    }
    ? >

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by w3digg
  • This topic is not a support question
  • WordPress version: 3.1.2