Skip Navigation

[Resolved] Remove WooCommerce Views filter fields metabox

This support ticket is created 7 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by thomasS-11 7 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#396364

How do i unhook/remove the WooCommerce Views filter fields Metabox?
My clients find it very annoying, and its FILTER fields, its not fields that should be visible to the clients.

Please let me know if there is a way to remove this.

Also, If possible, please a way to remove the content template metabox..

Suggestion: In settings, it should be possible to select which metabox you want displayed in the edit screens.

#396579

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Thomas,

Thank you for contacting our support forum.

Could you provide me with a screenshot of the issue at hand so I can better understand 🙂

Thanks,
Shane

#396853

Hi Shane, thanks for assisting me.

Yeah sure, i have this: hidden link metabox showing on the products edit screen.

I dont want the filters to be visible to the clients/users/admins of the store.

Can i programmatically unhook the metabox with the filters?
I was able to unhook the "Front-end display" box from the backend, so i figure there must be a similar way to remove this metabox.

What is it good for anyway? I never understood the use of it..

#396926

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Thomas,

Thank you for the screenshot.

You can actually hide this by going to Screen Options in the top right hand corner of the edit page of your page.

From here you can disable the Woocommerce Views Filter fields by unchecking the box.

Please let me know if this helps.
Thanks,
Shane

#397113

Hi Shane.

Im very well aware of that, but that doesnt really do it.
What i am asking for, is how to remove it by code.

Your solution is that every user needs to go to the "Select options" screen and untick it.
That is not a solution to me, as i want it never to be seen by the users, and not that the users has to go and do this action themselves, and everytime a new user is added.

I know this is doable. I just dont know the function / hook name for the metabox, and thats what im asking for.

Thank you.

#397280

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Thomas,

I took another look into this and was able to use the hook below to remove it.

function my_remove_meta_boxes() {
 remove_meta_box ( 'wpcf-group-woocommerce-views-filter-fields' , 'product', 'normal' );
}
add_action( 'do_meta_boxes', 'my_remove_meta_boxes' );

Add the above to your functions.php file and let me know if it helps.
Thanks,
Shane

#397327

Exactly what i was looking for!

Thanks alot Shane 🙂

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.