Whitelist URL
-
I need help getting this page whitelisted. I tried following the code you applied but it’s not working for me, so I don’t think I’m putting it in the right place.
Is this correct?
<?php /** * The7 theme. * * @since 1.0.0 * * @package The7 */ defined( 'ABSPATH' ) || exit; /** * Set the content width based on the theme's design and stylesheet. * * @since 1.0.0 */ if ( ! isset( $content_width ) ) { $content_width = 1200; /* pixels */ } /** * Initialize theme. * * @since 1.0.0 */ require trailingslashit( get_template_directory() ) . 'inc/init.php'; /** * 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( 'https://beaconemployee.com/policies/' ); return $whitelist; } add_filter( 'v_forcelogin_whitelist', 'my_forcelogin_whitelist' );
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Whitelist URL’ is closed to new replies.