Skip to content

Instantly share code, notes, and snippets.

@nielslange
Last active July 19, 2023 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nielslange/a9dbdb457422fbea18784e2a452e95b4 to your computer and use it in GitHub Desktop.
Save nielslange/a9dbdb457422fbea18784e2a452e95b4 to your computer and use it in GitHub Desktop.
ExperimentalDiscountsMeta
/**
* External dependencies
*/
import { registerPlugin } from '@wordpress/plugins';
import { ExperimentalDiscountsMeta } from '@woocommerce/blocks-checkout';
const render = () => {
return (
<ExperimentalDiscountsMeta>
<div class="wc-block-components-totals-wrapper">
ExperimentalDiscountsMeta
</div>
</ExperimentalDiscountsMeta>
);
};
registerPlugin( 'slot-and-fill-examples', {
render,
scope: 'woocommerce-checkout',
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment