Hooks & Filters
Scotty provides WordPress filters that allow you to customize its behavior.
Available Filters
scotty_excluded_termids
Filter the list of term IDs excluded from the “unused terms” detection.
add_filter('scotty_excluded_termids', function ($excluded_termids) {
// Add term ID 42 to the exclusion list
$excluded_termids[] = 42;
return $excluded_termids;
});By default, Scotty excludes default taxonomy terms and parent terms.
scotty_excluded_taxonomies
Filter the list of taxonomies excluded from the “orphan term relationships” detection.
add_filter('scotty_excluded_taxonomies', function ($excluded_taxonomies) {
// Exclude WooCommerce product taxonomies
$excluded_taxonomies[] = 'product_cat';
$excluded_taxonomies[] = 'product_tag';
return $excluded_taxonomies;
});By default, Scotty excludes link_category.
More hooks and filters will be added in future versions. If you need a specific hook, please request it on the support forum .
Last updated on