Forum Replies Created

Viewing 3 replies - 76 through 78 (of 78 total)
  • Thread Starter cari18

    (@cari18)

    Thank a lot Kevin! It works well
    YOU ARE GREAT !!!
    Its incredible you support me so efficiently
    Take care

    Thread Starter cari18

    (@cari18)

    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!

    Thread Starter cari18

    (@cari18)

    So it seems to be a stupid question.
    Sorry Kevin I’m just starting with WordPress
    CB

Viewing 3 replies - 76 through 78 (of 78 total)