• Resolved kdcargile

    (@kdcargile)


    Kevin – I’m closing my original thread… I’ve tried multiple times to post a reply to your question in multiple browsers… keeps failing. Please let me know if I am doing something wrong on Support Forum (new to all this). Here is my answer:

    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);

    https://www.ads-software.com/plugins/wp-force-login/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Whitelist top page (take 2)’ is closed to new replies.