I have a site with Toolset and WC and have created a WC Cred.
Now, I would like this Cred to reload the same page after submission.
I have not found this kind of possibility in the list of the potential actions after submission.
Is there a way to make it work like this?
Regards
Pat
Does that means that if I need to have the same behavior on all WC Creds, I can use it without the if function?
Second remark, I need to reload the same page where the current Cred is displayed (Creds could be displayed on different pages depending on where we are on the site).
How can I manage this inside this function? (I cannot use a fixed url in the wp_redirect( 'enlace oculto' ); ).
Does that means that if I need to have the same behavior on all WC Creds, I can use it without the if function?
=> Yes, that is correct then it will be applicable to all the WC CREDs.
Second remark, I need to reload the same page where the current Cred is displayed (Creds could be displayed on different pages depending on where we are on the site).
How can I manage this inside this function? (I cannot use a fixed url in the wp_redirect( 'enlace oculto' ); ).
=> That part you need to manage on your own by adding your custom logic within that hook. The redirect sample given is just for example.