add_filter( 'registration_errors', 'deny_sibbnk_usernames', 10, 3 );
function deny_sibbnk_usernames( $errors, $sanitized_user_login, $user_email ) {
if ( false !== strpos( $sanitized_user_login, '@sibbnk' ) ) {
$errors->add( 'username_not_allowed', __( 'Sorry, usernames containing "@sibbnk" are not allowed.', 'textdomain' ) );
}
return $errors;
}
Put this on functions.php on your theme or on the snippets plugin =).
Was having the same issue just now.
You must use on the API reroute that you just linked.
In my case i check if there’s an activation if there’s not, i added that.
if (empty($previousActivation) == true && $update && $update === 'true') {
lmfwc_delete_license_meta($license->getId(), 'userid');
$bodyTrimmed = str_replace(' ', '',$body['userid']);
lmfwc_add_license_meta($license->getId(), 'userid', $bodyTrimmed
);
}
Can you send us your snippet?