# confection-wp-plugin
Confection WP Plugin. Controls output here: https://confection.io/poc/alpha/


## shortcodes list

- Loading Confection: `[confection-plugin-scripts]`

- Sending Event: `[confection-event event="event-name" value="event-value"]`


## String translation

- Import client.js i18n variable new values into $confection_strings on shortcodes.php

- Execute WP-CLI `wp i18n make-pot . languages/confection.pot`

- Re-sync PO files and translate, then compile to MO files


## WordPress Deploy

- Update plugin version at confection-wp-plugin.php
- Update stable version with same tag at readme.txt
- Deploy the same tag at Github
- A Github Action will automatically deploy to WordPress Plugin Repo. The new version may take up to 6 hours to be distributed.