Quantcast
Channel: contact form 7 – WordPress.org Forums
Viewing all articles
Browse latest Browse all 9540

Rajkumar Gour on "[Plugin: Contact Form 7] how to chage the response meaage according to situaion"

$
0
0

Can any help me, how to change the response messages using wpcf7_messages filter hook according to situation. actually I am sending a code on mobile no in the before_mail_sent hook and want to change the message if the message sending code give me error.

When i am using the wpcf7_messages in the before_mail_sent hook function it it is not working for me

`
add_action("wpcf7_before_send_mail", 'send_mobile_code' );
function send_mobile_cod($wpcf7 ){
// mobile code generation and sending here
if($error == true){
// then i want to change the response messgae
}
}

https://wordpress.org/plugins/contact-form-7/


Viewing all articles
Browse latest Browse all 9540

Trending Articles