WordPress at Your Fingertips
function is not described

delete_woocommerce_term_meta() WC 1.0

Deprecated from version 3.6.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

WooCommerce Term Meta API

WC tables for storing term meta are deprecated from WordPress 4.4 since 4.4 has its own table. This function serves as a wrapper, using the new table if present, or falling back to the WC table.

No Hooks.




delete_woocommerce_term_meta( $term_id, $meta_key, $meta_value, $deprecated );
$term_id(int) (required)
Term ID.
$meta_key(string) (required)
Meta key.
Meta value (default: '').
Default: ''
Deprecated param (default: false).
Default: false


Deprecated 3.6.0

Code of delete_woocommerce_term_meta() WC 6.1.1

function delete_woocommerce_term_meta( $term_id, $meta_key, $meta_value = '', $deprecated = false ) {
	wc_deprecated_function( 'delete_woocommerce_term_meta', '3.6', 'delete_term_meta' );
	return function_exists( 'delete_term_meta' ) ? delete_term_meta( $term_id, $meta_key, $meta_value ) : delete_metadata( 'woocommerce_term', $term_id, $meta_key, $meta_value );