• Resolved kokoruz

    (@kokoruz)


    I was wondering how to change the capability names to be more human readable.

    I have a custom post called Team Posts

    When I look at in the Edit Role interface it reads as edit_team-posts but if I look at the built in Post type it reads as Edit Post.

    If I wanted to change these to be more like Edit Others’ Posts vs edit_others_team-posts where does that happen.

    Thank You

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi @kokoruz,

    You can look at the members_register_caps hook. Something like this:

    add_action( 'members_register_caps', 'cp_members_register_caps' );
    /**
     * Register a custom capability in Members.
     *
     * @return void
     */
    function cp_members_register_caps() {
    	members_register_cap( 'edit_others_team-posts', array( 'label' => 'Edit Team Posts' ) );
    }
    
    Thread Starter kokoruz

    (@kokoruz)

    Thank You

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Capability Names’ is closed to new replies.