@josselinl
7 years, 9 months ago
Ok i find my problem !
I have this code in functions.php for the user can go tu the wp-admin panel.
function no_dashboard() { if (!current_user_can('publish_posts') && $_SERVER['DOING_AJAX'] != '/wp-admin/admin-ajax.php') { wp_redirect(home_url()); exit; } } add_action('admin_init', 'no_dashboard');
Thanks 🙂
they help me https://buddypress.org/support/topic/only-admin-can-upload-new-profile-pic-avatar/
Ok thank you !