This function takes a single string argument, which is the name of the membership level that you want to test access for. By membership level name, that would be something like “gold” or “silver”, etc. This is a case insensitive comparison.
memb_hasMembership( ‘Gold’ )
It returns TRUE if the currently logged in user has the membership level, it returns FALSE otherwise.