• Resolved guimove

    (@digitalplugin)


    Hello, how to remove the tags [_language] in the receipt of mails (subjects and body) ex. [: en] Message title “subject” [:] or disable wp multilang for contactform 7?

    I specify that I add a field address and phone in the reception of the mail (so it is not the default fields contact form 7).

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • VaLeXaR

    (@valexar)

    You can disable integration for CF7.

    
    add_filter('wpm_integrations', function($integrations){
        unset($integrations['contact-form-7']);
        return $integrations;
    });
    
    add_filter('wpm_admin_pages', function($admin_pages){
        foreach ($admin_pages as $k=>$page) {
            if ($page == 'toplevel_page_wpcf7') {
                unset($admin_pages[$k]);
                break;
            }        
        }
        
        return $admin_pages;
    });
    

    The code for ‘functions.php’

    
    {
      "post_types": {
        "wpcf7_contact_form": null
      },
      "post_fields": {
        "_form": null,
        "_mail": null,
        "_mail_2": null,
        "_messages": null
      }
    }
    

    Config for ‘wpm-config.json’

    Thread Starter guimove

    (@digitalplugin)

    Thanks for the quick response. I managed to disable the form 7 contact for Wp Multilng, but I still have the [: en] in the subject and the mail body. Do I have to do any more manipulation of this one?

    I added :
    “_suject”: null,
    But without success. Do I need to disable and remove the app? But I will lose all the translations of my site. Besides, is it possible to disable the plugin Wp multilang without having the language shortcode that appears (as for Qtranslate-x)? In order to be able to reactivate languages later.

    Thank you.

    VaLeXaR

    (@valexar)

    Try resave the form.

    Thread Starter guimove

    (@digitalplugin)

    I just tried it does not work. I even tried creating a new form but I still have the same problem.

    VaLeXaR

    (@valexar)

    Contact Form 7 do not have field ‘_suject’ or ‘_subject’. What is this field?

    Thread Starter guimove

    (@digitalplugin)

    The subject field of the mail. As I do not know him, I just did a try. I still have no solution to my problem.

    Thread Starter guimove

    (@digitalplugin)

    It works now, it was a problem of post-types, I had two instead of putting it in the same. Thank you very much.

    Peter

    (@digitalform)

    Hi VaLeXaR,

    i put this code into the wpm-config.json, but the error message is duplicated.

    {
    “post_types”: {
    “wpcf7_contact_form”: null
    },
    “post_fields”: {
    “_form”: null,
    “_mail”: null,
    “_mail_2”: null,
    “_messages”: null
    }
    }

    The error message: [:HU]DAS FELD IST ERFORDERLICH.[:DE]DAS FELD IST ERFORDERLICH.[:]

    – Peter

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Contact Form 7’ is closed to new replies.