Some browsers block cookies inside this preview frame, so My Garage and the cart may forget your choices. Open the demo in a new tab

Filters for developers

WPCE has filters for the new 5.0 features, so a developer can change them from a child theme or a small plugin without editing WPCE.

See it working

Every screen in this guide is open in the view-only admin demo, with sample data.

Open the admin demo
All documentation pages
FilterWhat it changes
wpce_quick_searchesThe quick searches of a finder. Gets the list and the finder ID. Each item has term_id, title and url.
wpce_terms_line_separatorWhat goes between the choices, > by default. Gets the separator and the finder ID.
wpce_fits_badge_htmlThe fits badge on a product card. Gets the HTML and the product ID.
wpce_results_bar_textThe text in the results bar. Gets the text and the finder ID.
wpce_results_bar_htmlThe whole results bar. Gets the HTML and the searched term.
wpce_finder_popup_argsThe finder in the popup. Gets the finder arguments and the finder ID.
wpce_fitment_note_labelThe text before a note. Gets the label and the finder ID.
wpce_fitment_note_htmlA note as shoppers see it. Gets the HTML, the note and the finder ID.
wpce_fitment_noteOne note. Gets the note, the term ID and the product ID.
wpce_product_fitment_notesAll notes of a product. Gets the notes by term ID, the finder ID and the product ID.
wpce_finder_capabilityWho can add and edit finders, manage_woocommerce by default (Shop Managers and Administrators). Gets the capability.

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';
} );

WPCE for WooCommerceCompatibility finders that show only what fits

Buy on CodeCanyon

New search