Hooks and filters
Extend the plugin from your theme or a small plugin.
Using these
Every hook below exists in the plugin. Add them from a site-specific plugin or your child theme’s functions.php. Marketplace slugs are the lowercase identifiers shown on the Marketplaces tab, such as amazon or shopee.
Changing button output
These affect what a button says and the classes it carries.
add_filter( 'emb/button_text', function ( $text, $slug ) {
if ( 'shopee' === $slug ) {
return 'Beli di Shopee';
}
return $text;
}, 10, 2 );
emb/button_text,emb/button_classemb/show_heading,emb/heading_textemb/before_template,emb/after_template,emb/locate_template
Marketplaces and URLs
These change which marketplaces exist and which URLs are used.
emb/marketplaces/listadds or alters marketplace definitions.emb/product/marketplace_urls,emb/product/saved_urlsemb/geo_url,emb/visitor_countryemb/tracking_paramsfor the UTM parameters added to a link.
Affiliate transforms
These run after the tracking parameters and before the link is printed.
emb/affiliate/urlfilters the final transformed URL.emb/affiliate/overwrite_paramsdecides whether appended parameters replace ones already on the URL. It is false by default, so an existing parameter wins.
Visibility, tracking and schema
These decide whether buttons render, whether a click is counted, and what goes into structured data.
emb/buttons_visiblefor whether a product shows buttons at all.emb/tracking/should_trackto suppress a click being recorded.emb/schema/offerto alter a marketplace offer before it is added to the product schema.emb/settings/sanitizefor settings written by your own code.
Actions
Two actions fire around the button group, both receiving the product ID and the product object.
emb/frontend/before_buttonsemb/frontend/after_buttons