User Role
Overview
Defines the spawn_customer role and hides wp-admin for customers.
Role
spawn_customer with capabilities:
readspawn_set_domain_auto_renew
Methods
init(): voidregisters filters/actions to hide admin bar and redirect.register_role(): voidadds the role and capability.unregister_role(): voidremoves the role.hide_admin_bar( bool $show_admin_bar ): boolredirect_admin(): void
Hooks and Filters
show_admin_baradmin_init