Add custom success message via FORM API #23114
lucazdj
started this conversation in
Feature Request
Replies: 2 comments
-
Since there is no update on this ajax handler, you can add a custom message by code using dynamic data then use shortcode. It is dirty, but it works. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I ended up modifying the class ~/modules/forms/classes/ajax-handler.php for the original method add_success_message to work
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prerequisites
What problem is your feature request going to solve? Please describe.
I created a custom action to use in some forms. I am trying to rendera a custom message in the form when it is submitted with success, but it is not working.
I am using the function:
but the message rendered in the form is always the default. I also added some error messages, in the same way, and all of them worked.
I found this issue about that, but is not resolved
#9247
Describe the solution you'd like
It would be nice if this work as intended
Describe alternatives you've considered
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions