Hook function prints output twice

You don’t need to add do_action('create_amenities', $new_term_id);.

The created_{$taxonomy} hook fires after a new term in a specific taxonomy is created by default.

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