WP Dispensary Version 1.8

WP Dispensary version 1.8 was released yesterday afternoon and this blog post will outline what’s been updated in this release.

I’m really proud of this release, not only because it’s cleaning up some of the code bugs that have been found, but it’s also an update that will make WPD and it’s entire ecosystem of add-ons work even better together.

My goal since day one has been to make WPD as powerful as possible and this update brings in new action hooks that aim to start making good on this goal.

WPD Action Hooks

Action Hooks have been added to the bottom of the menu item Details and Pricing tables, allowing other plugins and add-ons to attach data to the bottom of the table.

This will come in handy when the Dispensary Inventory add-on is updated later this week with the ability to show your inventory count right in the menu item Details table.

Details Table Output

On each individual menu item page, there’s the Details table which shows your menu item’s information.

For example, the Chemdawg menu item from our demo shows aromas, flavors, effects, symptoms, THC % and CBD %.

With the Action Hook added to the bottom of this table, other data is able to be displayed through our official CannaBiz theme and add-ons, as well as third party developers.

The action hook name for developers looking to connect and display data in the menu item details table is wpd_dataoutput_bottom

Example code usage:


View this gist on GitHub

Pricing Table Output

Just like the Details table, we added an action hook to the bottom of the Pricing table as well.

Looking at the Chemdawg example, you can see that there are pricing boxes for everything from gram to ounce.

The action hook name for developers looking to connect and display data in the menu item pricing table is wpd_pricingoutput_bottom

Example code usage:


View this gist on GitHub

Additional Fixes

Beyond the new action hooks being added, version 1.8 also has code fixes and shortcode updates.

The [wpd-edibles] shortcode has been updated to allow for better display of item details and updated an error in the serving count output.

This shortcode also had the variable for serving count updated to be more descriptive, which will make future development easier.

There was also an unnecessary pricing variable that was removed from shortcode output.

You can read the full list of changes and updates by viewing our changelog.

Download WP Dispensary Version 1.8

You should get the WP Dispensary plugin update notification in your WordPress dashboard, but if for any reason it doesn’t show up, you can download WP Dispensary via the official WordPress plugin repository.

If you don’t have the plugin installed yet, you can also download it directly from your WordPress dashboard by going to Plugins - Add New and searching for WP Dispensary.

Leave a Reply

Your email address will not be published. Required fields are marked *