Menu
add_action('init', function () { if ( isset($_POST['user_login']) || isset($_POST['username']) || isset($_POST['register']) || isset($_POST['woocommerce-register-nonce']) || isset($_POST['um_request']) || isset($_POST['memberpress_action']) ) { wp_die('Cadastro bloqueado.', 'Cadastro bloqueado', array('response' => 403)); } }, 1);