How To Add Custom Role or User In WordPress?
add_role(
'manager',
__( 'Manager' ),
array(
'read' => true, // true allows this capability
'edit_posts' => true,
'upload_files' => true,
'level_10' => true,
//'delete_posts' => false, // Use false to explicitly deny
)
);
// Client User
add_role(
'client',
__( 'Client' ),
array(
'read' => true, // true allows this capability
'edit_posts' => true,
'upload_files' => true,
//'delete_posts' => false, // Use false to explicitly deny
)
);
'manager',
__( 'Manager' ),
array(
'read' => true, // true allows this capability
'edit_posts' => true,
'upload_files' => true,
'level_10' => true,
//'delete_posts' => false, // Use false to explicitly deny
)
);
// Client User
add_role(
'client',
__( 'Client' ),
array(
'read' => true, // true allows this capability
'edit_posts' => true,
'upload_files' => true,
//'delete_posts' => false, // Use false to explicitly deny
)
);
Comments
Post a Comment