add_action( 'job_bm_application_trash', 'job_bm_application_trash_29072019', 5,2 ); if ( ! function_exists( 'job_bm_application_trash_29072019' ) ) { function job_bm_application_trash_29072019($value, $application_id){ // do something with $application_id & $value } }