Viewing 1 replies (of 1 total)
  • A little late, but you can do the following:

    – Open the simple-terms-meta.php in an text editor
    – Insert the following code in the end of the file:

    do_action( 'delete_term', 'simple_term_metas_delete_term',10,4 );
    function simple_term_metas_delete_term($term, $tt_id, $taxonomy, $deleted_term) {
    	global $wpdb;
    	$wpdb->delete($wpdb->termmeta, array( 'term_id' => $term ));
    }

    – This code hooks the “Delete Term” Action and deletes all meta rows that are associated to the term.

    Regards,
    impuls-wa

Viewing 1 replies (of 1 total)
  • The topic ‘Deleting terms does not delete theirs metas’ is closed to new replies.