Grow your CSS skills. Land your dream job.

Make role see and edit specific pages WORDPRESS

  • # April 26, 2013 at 9:12 am

    Hi.
    How to make editors to see and edit only selected pages ?
    Here is how i add new role:


    add_role( 'webmaster', 'уебмастър' );
    /*Add cap*/
    function add_theme_caps() {
    // gets the author role
    $role = get_role( 'webmaster' );

    // This only works, because it accesses the class instance.
    // would allow the author to edit others' posts for current theme only
    $role->add_cap( 'edit_others_posts' );
    $role->add_cap( 'moderate_comments' );
    $role->add_cap( 'upload_files' );
    $role->add_cap( 'edit_posts' );
    $role->add_cap( 'edit_published_posts' );
    $role->add_cap( 'publish_posts' );
    $role->add_cap( 'edit_comment' );
    }
    add_action( 'admin_init', 'add_theme_caps');

    Now how to make them see and edit only specific pages?
    Regards.

    # April 27, 2013 at 7:41 am

    Anybody ?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".