![javascript](https://habrastorage.org/r/w120/webt/59/cc/76/59cc7600c78a2239379574.jpeg)
JavaScript
1
Вклад в тег
add_action( 'wpcf7_init', 'yoursite_cf7_new_shortcode',20 );
function yoursite_cf7_new_shortcode() {
wpcf7_add_shortcode( 'yourshortcode', 'your_site_cf7_new_shortcode_handler' );
}
function your_site_cf7_new_shortcode_handler( $tag ) {
return '<input type="hidden" value="'. esc_attr(get_field("title")) . '"/>';
}