|string $roles array of roles to check. * * @return bool * * @deprecated 2.0.0 */ public static function accessible( $who = '', $roles = [] ) { return \ContentControl\user_meets_requirements( $who, $roles, 'match' ); } /** * Check if a content is blocked to current user. * * @param string $who logged_in or logged_out. * @param string[]|array|string $roles array of roles to check. * * @return boolean * * @deprecated 2.0.0 */ public static function restricted( $who = '', $roles = [] ) { return ! \ContentControl\user_meets_requirements( $who, $roles, 'match' ); } }