-
Home
-
WP Job Openings – Job Listing, Career Page and Recruitment Plugin
- Tips
How to Hide WP Job Openings Admin Menus
function plt_hide_wp_job_openings_menus() {
//Hide "Job Openings".
remove_menu_page('edit.php?post_type=awsm_job_openings');
//Hide "Job Openings → Overview".
remove_submenu_page('edit.php?post_type=awsm_job_openings', 'awsm-jobs-overview');
//Hide "Job Openings → Job Openings".
remove_submenu_page('edit.php?post_type=awsm_job_openings', 'edit.php?post_type=awsm_job_openings');
//Hide "Job Openings → Add New Job".
remove_submenu_page('edit.php?post_type=awsm_job_openings', 'post-new.php?post_type=awsm_job_openings');
//Hide "Job Openings → Applications".
remove_submenu_page('edit.php?post_type=awsm_job_openings', 'edit.php?post_type=awsm_job_application');
//Hide "Job Openings → Settings".
remove_submenu_page('edit.php?post_type=awsm_job_openings', 'awsm-jobs-settings');
//Hide "Job Openings → Add-ons".
remove_submenu_page('edit.php?post_type=awsm_job_openings', 'awsm-jobs-add-ons');
//Hide "Job Openings → Upgrade".
remove_submenu_page('edit.php?post_type=awsm_job_openings', 'https://awsm.in/get/wpjo-pro/');
}
add_action('admin_menu', 'plt_hide_wp_job_openings_menus', 11);
Where do I put this code?
How to Hide WP Job Openings Meta Boxes
function plt_hide_wp_job_openings_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Applicant Details" meta box.
remove_meta_box('awsm-job-details-meta', $screen->id, 'normal');
//Hide the "Actions" meta box.
remove_meta_box('awsm-application-actions-meta', $screen->id, 'side');
//Hide the "Upgrade to WPJO Pro" meta box.
remove_meta_box('awsm-get-the-pro-pack-meta', $screen->id, 'side');
//Hide the "Job Specifications" meta box.
remove_meta_box('awsm-job-meta', $screen->id, 'normal');
//Hide the "Job Expiry" meta box.
remove_meta_box('awsm-expiry-meta', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_wp_job_openings_metaboxes', 20);
How to Hide the "WP Job Openings - Overview" Dashboard Widget
function plt_hide_wp_job_openings_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "WP Job Openings - Overview" widget.
remove_meta_box('awsm-jobs-overview-dashboard', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_wp_job_openings_dashboard_widgets', 20);