• How i can add to Google Sheets my custom shortcode for cf7. Some one like this.

    wpcf7_add_shortcode('your_lang', 'your_lang_shortcode_handler', true);
    function your_lang_shortcode_handler( $tag ) {
        $form_lang = get_bloginfo('language');
        if ( $form_lang == 'ru-RU') {
            $lang = 'RU';
        }
        else if ( $form_lang == 'en-US') {
            $lang = 'EN';
        }
        else if ( $form_lang == 'uk') {
            $lang = 'UA';
        }
        $output .= '<input type="hidden" name="your_lang" type="text" value="'. $lang .'" placeholder="'. $lang .'" />';
        return $output;
    }

    I am add to google Google Sheets colum name – your_lang but this colum is empty.

    • This topic was modified 8 years, 10 months ago by designa.
Viewing 1 replies (of 1 total)
  • Thread Starter designa

    (@designa)

    Ok. I change your_lang to yourlang in shortcode and Google Sheets colum name. Work fine.

Viewing 1 replies (of 1 total)

The topic ‘Cf7 custom shorcode’ is closed to new replies.