0
X
Add Snippet To Project
New Project
Add To Existing Project
register_activation_hook( __FILE__, 'wpturbo_register_custom_user_role' );
/**
* Registers a custom user role with specific capabilities.
*
* This function is called when the plugin is activated.
*
* @since 1.0.0
*
* @return void
*/
function wpturbo_register_custom_user_role() : void {
add_role( 'content-creator', 'Content Creator', [
]);
}