• Resolved dekig

    (@dekig)


    Dear Kevin,

    I would like to set up the white list, but it isn’t working.
    I readin over this blog, but I haven’t found solution to this.

    I use last:

    /**
    * Filter Force Login to allow exceptions for specific URLs.
    *
    * @return array An array of URLs. Must be absolute.
    **/
    function my_forcelogin_whitelist( $whitelist ) {
    $whitelist[] = site_url( ‘/mypage/’ );
    return $whitelist;
    }
    add_filter(‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’, 10, 1);

    I tried
    $whitelist[] = home_url(); $whitelist[] = home_url(‘/’) and $whitelist[] = http//:vaszonkepbolt.hu/’; butnothing happenned.

    Can you lead me to the soluiton please?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hello, can you share with me the exact code you’ve tried?

    Based on your post here, it looks like you might have had some syntax issue(s) and maybe didn’t format the code correctly?

    I tried $whitelist[] = home_url(); $whitelist[] = home_url(‘/’) and $whitelist[] = http//:vaszonkepbolt.hu/’; butnothing happenned.

    Also, did you try turning on WP_DEBUG mode?
    https://codex.ww.wp.xz.cn/WP_DEBUG

    WP_DEBUG mode should help you identify any PHP errors in your code.

    Lastly, there may be a conflict with another plugin or your theme. I recommend you try the following steps to rule out a conflict with your other plugins or theme:
    https://ww.wp.xz.cn/support/topic/whitelist-for-dummies/#post-8182327

Viewing 1 replies (of 1 total)

The topic ‘White list problem’ is closed to new replies.