wpforms_frontend_output_success not working
-
Hi there, I’m trying to use the action hook wpforms_frontend_output_success but even in the simplest code it doesn’t work. I’ve deactivated our caching plugin if that would rule out the issue but it seems that the plugin itself isn’t working or maybe I’m doing something that’s nor right. See the code I’m testing below:
// Add the action hook to display success message add_action( 'wpforms_frontend_output_success', 'custom_wpforms_frontend_output_success', 10, 4 ); // Function to display success message function custom_wpforms_frontend_output_success( $form_data, $fields, $entry_id ) { // Check if the form ID matches the desired form ID if ( absint( $form_data[ 'id' ] ) !== 14781 ) { return; } ?> <div>Success Na!</div> <?php }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wpforms_frontend_output_success not working’ is closed to new replies.