Description #
check if a specific information should be hidden in the frontend. The option could be email, phone, address. Returns true or false if option is passed, returns the full array if no option is passed.
Return #
(bool|array)
Params #
$option (string):
the option to check
Default (null)
Usage #
if ( dokan_is_vendor_info_hidden( 'address' ) ) {
// do something if vendor address is hidden
}
if ( ! dokan_is_vendor_info_hidden( 'phone' ) ) {
// do something if vendor phone is NOT hidden
// maybe show the phone
}