Got it working in Code Snippets. It seems that the third line in my code
if ( ! is_page( ‘request’ ) ) return;
breaks the snippet, no matter what way I try to restrict the code to run on just my “request” form page.
Fortunately only pages with your plugin’s forms respond to your hf_form_success hook (as one would expect). I do have your forms on more than one page on my site, but your hidden input field (_hf_form_id) allowed me to restrict the code to just the one page:
if ($_POST[‘_hf_form_id’] == 705) {…
Thanks for the help!
Thanks, Lap. I’ll try code-snippets again. Didn’t work before but I’ll re-examine. Child theme is plan B.
Appreciate your plugin.