WordPress filter hook
wcfm_sold_by_label
Fired by 4 WordPress plugins, running on 31K+ sites between them.
How to use wcfm_sold_by_label
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'wcfm_sold_by_label', function( $inquiry_vendor_id, $_ ) {
// Change $inquiry_vendor_id here.
return $inquiry_vendor_id;
}, 10, 2 );Argument names come from WCFM's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
4 plugins that fire wcfm_sold_by_label
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WCFM10,000+ installs
apply_filters( 'wcfm_sold_by_label', $inquiry_vendor_id, __( 'Store', 'wc-frontend-manager' ) )controllers/enquiry/wcfm-controller-enquiry-manage.php:170 -
WCFM Marketplace10,000+ installs
apply_filters( 'wcfm_sold_by_label', '', __( 'Store', 'wc-multivendor-marketplace' ) )core/class-wcfmmp-admin.php:318 -
WCFM Membership10,000+ installs
apply_filters( 'wcfm_sold_by_label', '', __( 'Vendor', 'wc-frontend-manager' ) )core/class-wcfmvm-frontend.php:789 -
Enhanced Integration for Billingo and WooCommerce900+ installs
apply_filters( 'wcfm_sold_by_label', '', __( 'Store', 'wc-multivendor-marketplace' ) )includes/compatibility/modules/class-wc-billingo-plus-wcfm.php:22
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.