Skip to content

Instantly share code, notes, and snippets.

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 robertdevore/fcaedd37d1dcad08a519961a85e4891c to your computer and use it in GitHub Desktop.
Save robertdevore/fcaedd37d1dcad08a519961a85e4891c to your computer and use it in GitHub Desktop.
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