Exclude URLS with Wildcard
-
2 years ago, this was the response about using wildcards to exclude URL’s for Ultimate Member. Has this been improved upon? I have an event system that needs to be excluded from page restrictions and there will be many URL’s. I’m hoping this has been improved upon these last 2 years. also – where specifically would this code be placed?
add_filter("um_access_check_global_settings","um_custom_access_check_global_settings", 9999 ); function um_custom_access_check_global_settings(){ $current_url = UM()->permalinks()->get_current_url( get_option( 'permalink_structure' ) ); if (strpos($current_url,'/wpforo/') !== false) { UM()->access()->allow_access = true; } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Exclude URLS with Wildcard’ is closed to new replies.