Edit Shortcode for Hidden Attr Field
-
Hello,
I am trying to use a hidden field within CF7 + ACF, and I have successfully been able to replicate it by using these two sections of code:
echo do_shortcode('[contact-form-7 id="19" destination-email="' . get_field('owner_email') . '"]');
function custom_shortcode_atts_wpcf7_filter( $out, $pairs, $atts ) { $my_attr = 'destination-email'; if ( isset( $atts[$my_attr] ) ) { $out[$my_attr] = $atts[$my_attr]; } return $out; }
However, I want to be able to still use your plugin in order to add the form as a pop up within my website.
Is there a hook or a filter that I could use to edit the shortcode printed that is displayed from class.ajax.php?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Edit Shortcode for Hidden Attr Field’ is closed to new replies.