Multisite Back Office Access issues
Hello everyone,
I know that this feature does not currently support Multisite, so I also tried the following two ways.
1、
Forbidden WP-admin
Modify theme/functions.php
Added
Code:
add_action( 'init', 'blockusers_init' );
function blockusers_init() {
if ( is_admin() && ! current_user_can( 'administrator' ) ) {
wp_redirect( home_url() );
exit;
}
}
2、
Password protection WP-admin
Although the above two methods to prevent members from accessing
WP-admin, but also had another problem! Members cannot post advertisements.
There is which method to use?
Please kindly let us know, thank you.