Masking custom 'Phone' attribute in Vendor category

I am trying to hide/ mask phone number of vendors for users logged out and when they login this will become visible. There is another post on this but that don’t work.

Yes, it’s possible but requires customizations, you can try using the hivepress/v1/fields/phone hook or use custom JS code for this.

This is something I tried but don’t work ?

	function( $attributes ) {
		if ( isset( $attributes['phone'] ) && !is_user_logged_in() ) {
			$attributes['phone']['###########'] = '#user_login_modal';
		return $attributes;


We can only provide general guidelines if you are familiar with coding. Adding such a feature requires a custom implementation.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.