I have a category with id 320, I want to hide some attribute fields if a user selects that category. How do I go about it?
Another question is how do I rename the “Requests” menu on the left side bar to “Music Submissions” ?
I have a category with id 320, I want to hide some attribute fields if a user selects that category. How do I go about it?
Another question is how do I rename the “Requests” menu on the left side bar to “Music Submissions” ?
Hi,
add_filter(
'hivepress/v1/models/listing/attributes',
function( $attributes ) {
if ( isset($attributes['price']) ) {
$attributes['price']['categories'] = [1,2,3];
}
return $attributes;
},
1000
);
Please note that it can require further customization.
I hope this is helpful to you.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.