Remove “In Stock” message from the Inventory Management add-on

<?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' );
}

Leave a Reply

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