Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Matias G H

    (@mghextreme)

    Thanks, @themaster5_07 ! It worked perfectly!

    For future people that reach this thread, I’ll leave here a brief explanation of what I did:

    echo do_shortcode('[contact-form-7 id="58" title="FormName"]');
    
    $m = array();
    $m[] = wpcf7_get_message( 'mail_sent_ok' );
    $m[] = wpcf7_get_message( 'mail_sent_ng' );
    $m[] = wpcf7_get_message( 'validation_error' );
    $m[] = wpcf7_get_message( 'spam' );

    Because I do the shortcode right before, I don’t need the wpcf7_get_contact_form_by_title( 'formName' ) before getting the messages.

    Thread Starter Matias G H

    (@mghextreme)

    Sorry, themaster5_07, I thought it was correctly categorized.

    The content I want to get is from the admin page of a specific Contact Form 7 form. On each form you can set many messages for when the mail is sent, when it fail, when there is an incorrect field…

    I wanted t know if it is possible to do something like:

    get_wpcf7_message( formid, "wpcf7fail" );

    And it return something similar to

    "Failed to send your message. Please try later or contact the website administrator."

    or whatever message (in my case translated) that be there.

    If I still was not clear, please notice.
    I’m trying my best to help you help me.

    Thanks for the reply.

Viewing 2 replies - 1 through 2 (of 2 total)