philippegervais
Forum Replies Created
-
hello
Thanks for this 1.38.0 update, the disable submit option now work correctly on my Elementor forms !!
Regards, Philippe
hello and many thanks for your quick answer
since I’m a rooky in WordPress “customization” – event if I’m strongly skilled in IT – I need more support…..and sorry if my questions are obvious
1) I’ve read this documentation : http://hookr.io/filters/wpcf7_mail_html_footer/
2) for adding a hook callback, I’ve understood I need to copy this code :
// define the wpcf7_mail_html_footer callback
function filter_wpcf7_mail_html_footer( $body_html, $instance ) {
// make filter magic happen here…
return $body_html;
};
// add the filter
add_filter( ‘wpcf7_mail_html_footer’, ‘filter_wpcf7_mail_html_footer’, 10, 2 );….. probably in the file “contact-form-7/admin/admin.php”
right ?
anywhere ? at the beginning for instance ?3) what about “make filter magic happen here…” ?
is this the place I need to code something for my own footer, like give the path of my own signature file or write my html tags for my signature ?
do you have an example I can rely on ?4) The filter is defined in the following location(s) : contact-form-7/includes/mail.php
….. in this part of the code :
$footer = apply_filters( ‘wpcf7_mail_html_footer’,
‘</body>
</html>’, $this );is there something to do here ? I figure out $this is the parameter given by the function, but do I need to do something here ? don’t think so … but not sure
5) what about “to run the hook, copy the example below.” :
$body_html = apply_filters( ‘wpcf7_mail_html_footer’, $body_html, $instance );
if ( !empty( $body_html ) ) {
// everything has led up to this point…
}
….. what to do with this piece of code ? copy it somewhere ….. but where ?again, thanks in advance for your support