Online Store Kit Online Store Kit

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_class
  • emb/show_heading, emb/heading_text
  • emb/before_template, emb/after_template, emb/locate_template

Marketplaces and URLs

These change which marketplaces exist and which URLs are used.

  • emb/marketplaces/list adds or alters marketplace definitions.
  • emb/product/marketplace_urls, emb/product/saved_urls
  • emb/geo_url, emb/visitor_country
  • emb/tracking_params for the UTM parameters added to a link.

Affiliate transforms

These run after the tracking parameters and before the link is printed.

  • emb/affiliate/url filters the final transformed URL.
  • emb/affiliate/overwrite_params decides 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_visible for whether a product shows buttons at all.
  • emb/tracking/should_track to suppress a click being recorded.
  • emb/schema/offer to alter a marketplace offer before it is added to the product schema.
  • emb/settings/sanitize for 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_buttons
  • emb/frontend/after_buttons

Last modified August 19, 2026

Was this page helpful?
Online Store Kit

Ready to Get Started?

Grab the kit, install in minutes, and start selling everywhere your customers already shop.

Cookies keep the cart rolling

We use cookies for your cart, login session, and secure checkout. Details in the privacy policy.