acses only register
-
Hi, thx fo youre plugin
I have little problem.
I using this function, for acses only autorizations useradd_action('init','CheckAllow'); function CheckAllow() { $current_path = empty( $_SERVER["REQUEST_URI"] ) ? home_url() : $_SERVER["REQUEST_URI"]; if (! is_user_logged_in() && ! is_login() ){ wp_redirect( wp_login_url($current_path) ); exit; } } function is_login() { return in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ); }
But JetPack can not activate.
xml_rpc-32700
The Jetpack server could not communicate with your site’s XML-RPC URL. Please check to make sure https://my_site_url/portal/xmlrpc.php is working properly. It should show ‘XML?RPC server accepts POST requests only.’ on a line by itself when viewed in a browser and should not have any blank links or extra output anywhere.If disable function – jetpack activate
But after if enable – not work ??please help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘acses only register’ is closed to new replies.