Hooks and filters available for developers to extend plugin functionality.
How to Check User Verification Status?
Use the following code to check if a user has verified their email:
$is_verified = get_user_meta( $user_id, 'cev_email_verified', true );
if ( $is_verified === '1' ) {
// User is verified
}
How to Change the OTP Button Label?
Use this filter to customize the “Send Verification Code” button text:
add_filter( 'cev_checkout_send_otp_button_text', function( $text ) {
return 'Get Your Code';
});
Available Filters
| Filter | Description |
|---|---|
cev_checkout_send_otp_button_text | Change the OTP button text |
cev_verification_email_content | Modify verification email content |
cev_otp_code_length | Programmatically set OTP length |