• Please check my below code:
    I want to send page title into mail body:

    function post_title_shortcode(){
    	return get_the_title();
    } 
    add_shortcode('post-Title','post_title_shortcode');
    
    function my_special_mail_tag( $output, $name, $html ) {
    	if ( 'post-Title' == $name )
    		$output = do_shortcode( "[$name]" );
     
    	return $output;
    }
    add_filter( 'wpcf7_special_mail_tags', 'my_special_mail_tag', 10, 3 );

    The page I need help with: [log in to see the link]

  • The topic ‘Add Shortcode into contact form 7 mail’ is closed to new replies.