Latest Post

How to add a new User New Role In Wordpress

How to add a new User New Role In Wordpress

How to add a new User New Role In Wordpress 


This code use for you can add new user role your website.

<?php
add_role('other_account', __(
    'other'),
    array(
        'read'              => true, // Allows a user to read
        'create_posts'      => true, // Allows user to create new posts
        'edit_posts'        => true, // Allows user to edit their own posts
        'edit_others_posts' => true, // Allows user to edit others posts too
        'publish_posts'     => true, // Allows the user to publish posts
        'manage_categories' => true, // Allows user to manage post categories
        )

);
?>

No comments