Category Filter hooks

job_bm_salary_durations

You can add your own salary durations by adding filter hook as following example. function job_bm_salary_durations_29072019($durations){ $durations[‘custom_1’] = __(‘Custom 1′,’textdomain’); $durations[‘custom_2’] = __(‘Custom 2′,’textdomain’); return $durations; } add_filter(‘job_bm_salary_durations’,’job_bm_salary_durations_29072019′); Remove salary durations you can remove salary durations by filter hook as…

job_bm_post_type_job

Change job name, slug etc function job_bm_post_type_job($args){ $singular = __( ‘Work’, ‘job-board-manager’ ); $plural = __( ‘Works’, ‘job-board-manager’ ); $args = array( ‘labels’ => array( ‘name’ => $plural, ‘singular_name’ => $singular, ‘menu_name’ => $singular, ‘all_items’ => sprintf( __( ‘All %s’,…

job_bm_registration_errors

add_filter(‘job_bm_registration_errors’, ‘job_bm_registration_errors_29072019’); function job_bm_registration_errors_29072019($error, $post_data){ if(empty($post_data[‘custom_form_field’])){ $error->add( ‘custom_form_field’, __( ‘<strong>ERROR</strong>: Field is empty.’, ‘job-board-manager’ ) ); } return $error; }  

job_bm_registration_thank_you

add_filter(‘job_bm_registration_thank_you’, ‘job_bm_registration_thank_you_29072019’); function job_bm_registration_thank_you_29072019($message){ $new_message = _e(‘Hello tahnks’, ‘job-board-manager’); return $new_message ; }  

job_bm_dashboard_tabs

add_filter(‘job_bm_dashboard_tabs’, ‘job_bm_dashboard_tabs’); function job_bm_dashboard_tabs($tabs){ $tabs[‘custom’] =array( ‘title’=>__(‘Custom’, ‘job-board-manager’), ); return $tabs; } add_action( ‘job_bm_dashboard_tabs_content_custom’, ‘job_bm_dashboard_tabs_content_custom_29072019’, 5 ); if ( ! function_exists( ‘job_bm_dashboard_tabs_content_custom_29072019’ ) ) { function job_bm_dashboard_tabs_content_custom_29072019(){ ?> <pre>Content custom tabs</pre> <?php } }   View post on imgur.com Remove…

job_bm_job_status_text_color

function job_bm_job_status_text_color_29072019($job_type_color){ $job_type_color= array(‘job_type_1’=>’#46a6ff’,’job_type_2’=>’#a066ff’); $job_type_color= array_merge($job_type_color,$job_type_color_new); return $job_type_color; } add_filter(‘job_bm_job_status_text_color’,’job_bm_job_status_text_color_29072019′);     Remove job type background-color you can remove existing job type background color by filter hook as following. function job_bm_job_status_text_color_29072019($job_type_color){ unset($job_type_color[‘internship’]); return $job_type_color; } add_filter(‘job_bm_job_status_text_color’,’job_bm_job_status_text_color_29072019′); Default job type background-color:…

job_bm_job_type_text_color

You can add your own job type background color by adding filter hook as following example. function job_bm_job_type_text_color_29072019($job_type_text_color){ $job_type_text_color_new = array(‘job_type_1’=>’#46a6ff’,’job_type_2’=>’#a066ff’); $job_type_bg_color = array_merge($job_type_text_color,$job_type_text_color_new); return $job_type_bg_color; } add_filter(‘job_bm_job_type_text_color’,’job_bm_job_type_text_color_29072019′);   View post on imgur.com   Remove job type background-color you can…

job_bm_job_submit_login_required_text

add_filter(‘job_bm_job_submit_login_required_text’, ‘job_bm_job_submit_login_required_text_29072019’); function job_bm_job_submit_login_required_text_29072019($message){ $new_message = _e(‘Custom message’, ‘job-board-manager’); return $new_message ; }  

job_bm_job_edit_unauthorized_text

add_filter(‘job_bm_job_edit_unauthorized_text’, ‘job_bm_job_edit_unauthorized_text_29072019’); function job_bm_job_edit_unauthorized_text_29072019($message){ $new_message = _e(‘Custom message’, ‘job-board-manager’); return $new_message ; }  

job_bm_job_edit_login_required_text

add_filter(‘job_bm_job_edit_login_required_text’, ‘job_bm_job_edit_login_required_text_29072019’); function job_bm_job_edit_login_required_text_29072019($message){ $new_message = _e(‘Custom message’, ‘job-board-manager’); return $new_message ; }  

job_bm_job_edited_thank_you

add_filter(‘job_bm_job_edited_thank_you’, ‘job_bm_job_edited_thank_you_29072019’); function job_bm_job_edited_thank_you_29072019($message){ $new_message = _e(‘Thanks’, ‘job-board-manager’); return $new_message ; }  

job_bm_job_edit_errors

add_filter(‘job_bm_job_edit_errors’, ‘job_bm_job_edit_errors_29072019’, 90, 2); function job_bm_job_edit_errors_29072019($error, $post_data){ if(empty($post_data[‘custom_form_field’])){ $error->add( ‘custom_form_field’, __( ‘<strong>ERROR</strong>: Field is empty.’, ‘job-board-manager’ ) ); } return $error; }