Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kdcargile

    (@kdcargile)

    Thanks Kevin – that seems to be it!

    Thread Starter kdcargile

    (@kdcargile)

    Kevin – Thanks for the reply… works great on all 5 whitelist pages except front page. Yes, already using home_url() due to my temp domain.

    https://4b9.ddd.myftpupload.com/

    function my_forcelogin_whitelist( $whitelist ) {
      $whitelist[] = home_url( '/current-member-districts/' );
      $whitelist[] = home_url( '/about/' );
      $whitelist[] = home_url( '/how-to-become-a-member/' );
      $whitelist[] = home_url( '/upcoming-bid-specifications/' );
      $whitelist[] = home_url( '/contact-us/' );
      $whitelist[] = home_url();
      return $whitelist;
    }
    add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);
    Thread Starter kdcargile

    (@kdcargile)

    Thanks Kevin. Here is my code. Working great on the listed pages, just not the main page. And yes, I’m using home URL already due to my temp domain:

    https://4b9.ddd.myftpupload.com/

    function my_forcelogin_whitelist( $whitelist ) {
    $whitelist[] = home_url( ‘/current-member-districts/’ );
    $whitelist[] = home_url( ‘/about/’ );
    $whitelist[] = home_url( ‘/how-to-become-a-member/’ );
    $whitelist[] = home_url( ‘/upcoming-bid-specifications/’ );
    $whitelist[] = home_url( ‘/contact-us/’ );
    $whitelist[] = home_url();
    return $whitelist;
    }
    add_filter(‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’, 10, 1);

Viewing 3 replies - 1 through 3 (of 3 total)