public static on_delete_term ( integer $term_id ) : boolean | ||
$term_id | integer | Term ID. |
return | boolean | Result of the deletion operation. |
public static function on_delete_term($term_id)
{
global $wpdb;
return $wpdb->query('
DELETE FROM ' . $wpdb->termmeta . '
WHERE `term_id` = "' . intval($term_id) . '"
');
}