Hello Kiki,
Please replace the following code with this:
instead of
// Replace this by user level name. if ( $level && $level->name = 'gold' ) { return true; }
use this comparison with level id.
// Replace this by user level name. if ( $level && $level->ID == 1 ) { return true; }
You can locate Level id using the following screenshot:
https://www.awesomescreenshot.com/image/16481660?key=002369155b0b6d20f3ea154d40c58042
Regards
Ravi
The topic ‘ [Resolved] Recent Visitors’ is closed to new replies.
This topic is: resolved