Sauter la navigation

[Résolu] Split: Cred WC submission – remove success message from url

This support ticket is created Il y a 5 années et 9 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Marqué : 

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Minesh Il y a 5 années et 9 mois.

Assisté par: Minesh.

Auteur
Publications
#1220604

Pat

Hi Minesh,

I'm OK with this. Here is the code I have used :

add_action( 'cred_commerce_form_action', 'my_hook', 10, 4 );
function my_hook( $action, $form_id, $post_id, $form_data ) {
$referer = $_SERVER['HTTP_REFERER'];
        wp_redirect( $referer );
        exit();
 
} 

The only issue I have with that is the url I'm getting has all info like : lien caché

I would like to get only the page without te info linked to success message.

Regards
Pat

#1220641

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Closing this ticket as it's duplicate of another ticket.