Warning: This function has been deprecated.

delete_woocommerce_term_meta( int $term_id, string $meta_key, string $meta_value = '', bool $deprecated = false )

WooCommerce Term Meta API

Description Description

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.

Parameters Parameters


(Required) Term ID.


(Required) Meta key.


(Optional) Meta value (default: '').

Default value: ''


(Optional) Deprecated param (default: false).

Default value: false

Top ↑

Return Return


Top ↑

Source Source

File: includes/wc-deprecated-functions.php

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 );

Top ↑

Changelog Changelog

Version Description
3.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.