Skip to content

Instantly share code, notes, and snippets.

View anon-ra's full-sized avatar
👁️
Watching

Anon Ra anon-ra

👁️
Watching
View GitHub Profile
@webtoffee-git
webtoffee-git / gist:f7c9957e1ff88be18ee02178f625bf25
Created December 8, 2025 09:27
Code snippet to disables the additional Category Mapping fields added by the WebToffee Product Feed & Sync Manager plugin (Facebook, Google, Fruugo, OnBuy, etc.) on the Product Category page - By WebToffee
<?php //Do not copy this line of code
add_action( 'admin_init', 'wt_remove_category_mapping_fields', 999 );
function wt_remove_category_mapping_fields() {
global $wp_filter;
// Remove Facebook Category field (function-based)
remove_action( 'product_cat_edit_form_fields', 'wt_fbfeed_category_form_fields', 10 );
remove_action( 'product_cat_add_form_fields', 'wt_fbfeed_category_form_fields', 10 );