{"id":16865201,"date":"2023-07-03T11:01:42","date_gmt":"2023-07-03T11:01:42","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wpforms_frontend_output_success-not-working\/"},"modified":"2023-07-03T11:01:42","modified_gmt":"2023-07-03T11:01:42","slug":"wpforms_frontend_output_success-not-working","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wpforms_frontend_output_success-not-working\/","title":{"rendered":"wpforms_frontend_output_success not working"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi there, I&#8217;m trying to use the action hook wpforms_frontend_output_success but even in the simplest code it doesn&#8217;t work. I&#8217;ve deactivated our caching plugin if that would rule out the issue but it seems that the plugin itself isn&#8217;t working or maybe I&#8217;m doing something that&#8217;s nor right. See the code I&#8217;m testing below:<br \/><br \/><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Add the action hook to display success message\nadd_action( 'wpforms_frontend_output_success', 'custom_wpforms_frontend_output_success', 10, 4 );\n\n\/\/ Function to display success message\nfunction custom_wpforms_frontend_output_success( $form_data, $fields, $entry_id  ) {\n    \/\/ Check if the form ID matches the desired form ID\n    if ( absint( $form_data&#091; 'id' ] ) !== 14781 ) {\n      return;\n    }\n    ?&gt;\n    &lt;div&gt;Success Na!&lt;\/div&gt;\n&lt;?php\n}<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-16865201","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16865201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16865201\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16865201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}