WordPress开发者和主题制作者的搜索引擎



delete_term_meta ›

Since4.4.0
已弃用n/a
delete_term_meta ( $term_id, $meta_key, $meta_value = '' )
参数: (3)
  • (int) $term_id Term ID.
    Required: Yes
  • (string) $meta_key Metadata name.
    Required: Yes
  • (mixed) $meta_value Optional. Metadata value. If provided, rows will only be removed that match the value.
    Required: No
    默认: (empty)
返回:
  • (bool) True on success, false on failure.
定义在:
文档:

Removes metadata matching criteria from a term.



源码

function delete_term_meta( $term_id, $meta_key, $meta_value = '' ) {
	return delete_metadata( 'term', $term_id, $meta_key, $meta_value );
}