Remove job application form
If you need to remove the job application form. Here's is the code to how to do it.
1
function wjo_remove_form_hooks() {
2
if( class_exists('AWSM_Job_Openings_Form') ) {
3
remove_action( 'awsm_application_form_init', array( AWSM_Job_Openings_Form::init(), 'application_form' ) );
4
remove_action( 'before_awsm_job_details', array( AWSM_Job_Openings_Form::init(), 'insert_application' ) );
5
remove_action( 'wp_ajax_awsm_applicant_form_submission', array( AWSM_Job_Openings_Form::init(), 'ajax_handle' ) );
6
remove_action( 'wp_ajax_nopriv_awsm_applicant_form_submission', array( AWSM_Job_Openings_Form::init(), 'ajax_handle' ) );
7
}
8
}
9
add_action( 'wp_loaded', 'wjo_remove_form_hooks', 99 );
Copied!
Last modified 7mo ago
Copy link