Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->add_action('et_admin_menu', 'add_admin_menu');
     $this->add_action('et_admin_enqueue_styles-et-job-fields', 'on_print_styles');
     $this->add_action('et_admin_enqueue_scripts-et-job-fields', 'on_print_scripts');
     $this->add_action(self::ACTION_ADMIN_INIT, 'on_handle_post');
     $this->add_action(self::ACTION_AJAX_DEL_FIELD, 'on_delete_field');
     $this->add_action(self::ACTION_AJAX_SORT_FIELDS, 'on_sort_fields');
     $this->add_action(self::ACTION_SAVE_JOB, 'on_save_job');
     $this->add_action(self::ACTION_META_BOX, 'job_meta_box');
     $this->add_action(self::ACTION_SAVE_POST, 'on_save_post');
     $this->add_action('et_resume_meta_box', 'resume_meta_box');
     add_action('wp_ajax_resume_upload_file', array($this, 'resume_upload_file'));
     //remove file
     add_action('wp_ajax_resume_romove_attachment', array($this, 'resume_romove_attachment'));
     add_action('wp_ajax_mobile_upload', array($this, 'mobile_upload'));
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->add_action(self::ACTION_INIT, 'on_init');
     //$this->add_action('je_update_resume','je_insert_resume_field', 10000);
 }