Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
=== Freemius Blocks - a collection of blocks to add Freemius to your website === Contributors: patrickposner Tags: Gutenberg, Blocks Requires at least: 6.6 Requires PHP: 7.0 Tested up to: 6.9 Stable tag: 0.8.1 == Description == Freemius Blocks - a collection of blocks to add Freemius to your website. Configure the product and plan IDs in the block settings and start using the blocks. Existing installations may continue to define `FSP_PUBLIC_KEY`, but the current production checkout no longer requires it. This plugin provides three blocks to add Freemius to your website: 1. Freemius Button A simple button that opens the Freemius checkout modal with the given plan, quantity and additional arguments. 2. Freemius Quantity Select Combo Box A combo box to select the quantity of a plan, which updates the price accordingly + a button to open the Freemius checkout modal + a description for the plugin. 3. Freemius Price Toggle A simple toggle implementation to switch out group blocks in the block editor with different pricing plans. It's useful if you want to add a toggle switch for annual and lifetime plans. == Installation == = Default Method = 1. Go to Settings > Plugins in your administrator panel. 2. Click `Add New` 3. Search for Freemius Blocks 4. Click install. = Easy Method = 1. Download the zip file. 2. Login to your `Dashboard` 3. Open your plugins bar and click `Add New` 4. Click the `upload tab` 5. Choose `freemius-blocks` from your downloads folder 6. Click `Install Now` 7. All done, now just activate the plugin = Old Method = 1. Upload `freemius-blocks` to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress == Screenshots == 1. Freemius Blocks Screenshot 1 1. Freemius Blocks Screenshot 2 == Changelog == = 0.8.1 = * fixed checkout blocks being hidden on the frontend when `FSP_PUBLIC_KEY` is not defined = 0.8 = * fixed editor crashes when the Freemius public key is unavailable * made multiple buy buttons and quantity selectors work independently on the same page * loaded checkout scripts once through WordPress instead of adding duplicate inline dependencies * improved validation, escaping, translations, and empty-state handling * updated WordPress build dependencies = 0.7 = * new JS SDK for buy button block = 0.6 = * added quantity select combobox block * updated all dependencies to the latest versions * compatibility with WordPress 6.6 * some code impprovements for better performance = 0.5 = * Initial release