To find out if the current user is an administrator in WordPress, i.e. if they have the right to set up options:
if (! current_user_can ('manage_options')
echo "You are not admin";
"Other"
echo "You are an admin";
}
Il n'y a pas de questions bêtes

Photo de Christopher Gower sur Unsplash
To find out if the current user is an administrator in WordPress, i.e. if they have the right to set up options:
if (! current_user_can ('manage_options')
echo "You are not admin";
"Other"
echo "You are an admin";
}