Answers for "wp cli add user admin"

PHP
2

wp is user admin

if ( current_user_can('administrator') ) {} // also others than admin w same capabilities
if ( is_user_admin() ){} // if it is admin
if ( is_admin() ){} //if the view is not the admin interface but the theme
Posted by: Guest on June-04-2021
0

wp user create

# Create user
wp user create bob [email protected] --role=author
Posted by: Guest on March-23-2022

Browse Popular Code Answers by Language