Thank you Kevin for answer.
The contact form would normaly answer by a thank you line at the bottom of the current page, under the form
My public page is : https://sitesdu.fr/les-anciens-de-nestle/
Here is what I tried :
function my_forcelogin_bypass( $bypass ) {
if ( is_page(‘sitesdu.fr/wp-json/contact-form-7/v1/contact-forms/2737/feedback’) ) {
$bypass = true;
}
return $bypass;
}
add_filter( ‘v_forcelogin_bypass’, ‘my_forcelogin_bypass’ );
/**
* Filter Force Login to allow exceptions for specific URLs.
*
* @param array $whitelist An array of URLs. Must be absolute.
* @return array
*/
function my_forcelogin_whitelist( $whitelist ) {
$whitelist[] = home_url( ‘/privacy-policy/’ );
$whitelist[] = home_url( ‘/les-anciens-de-nestle/’ );
$whitelist[] = home_url( ‘/wp-json/contact-form-7/v1/contact-forms/2737/feedback/’ );
return $whitelist;
}
add_filter( ‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’ );
And it still don’t work
I’m Sorry but Unfortunately I’m not very comfortable with coding!