Hook to execute after deleting a Custom Taxonomy

Changes argument numbers 2 to 4 as below

add_action( 'delete_product_category', array ( $this , 'term_delete_success' ), 10, 4);

Here is the reference function.

You may find detail on wordpress codex

More info

do_action( "delete_{$taxonomy}", int $term, int $tt_id, mixed $deleted_term, array $object_ids )

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)