Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove public "In Stock" message from the Dispensary Inventory Management add-on via WP Dispensary
<?php
/** Removes the Inventory Management add-on's front end display of available inventory */
add_action( 'wpd_dataoutput_bottom', 'remove_wpd_inventory_data', 1 );
function remove_wpd_inventory_data() {
remove_action( 'wpd_dataoutput_bottom', 'add_wpd_inventory_data_flowers' );
remove_action( 'wpd_dataoutput_bottom', 'add_wpd_inventory_data_concentrates' );
remove_action( 'wpd_dataoutput_bottom', 'add_wpd_inventory_data_edibles' );
remove_action( 'wpd_dataoutput_bottom', 'add_wpd_inventory_data_prerolls' );
remove_action( 'wpd_dataoutput_bottom', 'add_wpd_inventory_data_topicals' );
remove_action( 'wpd_dataoutput_bottom', 'add_wpd_inventory_data_growers' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.