Hola…uso ListingHive
I have removed the “Category” field with this code, on the create Listing page
add_filter(
'hivepress/v1/forms/listing_submit',
function( $form ) {
unset($form['fields']['categories']);
return $form;
},
1000
);
add_filter(
'hivepress/v1/models/listing',
function( $args ) {
$args['fields']['categories']['required'] = false;
return $args;
},
1000
);
The problem it causes is when I am on the packages page. Clicking on “Change details” does not work, it does not go back.
How could it be solved?