| Filter | What it changes |
|---|---|
| wpce_quick_searches | The quick searches of a finder. Gets the list and the finder ID. Each item has term_id, title and url. |
| wpce_terms_line_separator | What goes between the choices, > by default. Gets the separator and the finder ID. |
| wpce_fits_badge_html | The fits badge on a product card. Gets the HTML and the product ID. |
| wpce_results_bar_text | The text in the results bar. Gets the text and the finder ID. |
| wpce_results_bar_html | The whole results bar. Gets the HTML and the searched term. |
| wpce_finder_popup_args | The finder in the popup. Gets the finder arguments and the finder ID. |
| wpce_fitment_note_label | The text before a note. Gets the label and the finder ID. |
| wpce_fitment_note_html | A note as shoppers see it. Gets the HTML, the note and the finder ID. |
| wpce_fitment_note | One note. Gets the note, the term ID and the product ID. |
| wpce_product_fitment_notes | All notes of a product. Gets the notes by term ID, the finder ID and the product ID. |
| wpce_finder_capability | Who can add and edit finders, manage_woocommerce by default (Shop Managers and Administrators). Gets the capability. |
Example: fewer dropdowns in the popup
A finder with many levels can show only the first few in the Change and New search popup:
add_filter ( 'wpce_finder_popup_args', function ( $args, $finder_id ) {
$args['no_of_levels'] = 3;
return $args;
}, 10, 2 );Example: let another role edit finders
A custom staff role that can edit products can also add and edit finders with this:
add_filter ( 'wpce_finder_capability', function () {
return 'edit_products';
} );