Testing of this plugin has been temporarily suspended due to an error. It will automatically resume when a new plugin version is released.
function plt_hide_linkt_menus() {
//Hide "Linkts".
remove_menu_page('edit.php?post_type=linkt');
//Hide "Linkts → All Linkt's".
remove_submenu_page('edit.php?post_type=linkt', 'edit.php?post_type=linkt');
//Hide "Linkts → Add New Linkt's".
remove_submenu_page('edit.php?post_type=linkt', 'post-new.php?post_type=linkt');
//Hide "Linkts → Categories".
remove_submenu_page('edit.php?post_type=linkt', 'edit-tags.php?taxonomy=linkt-cat&post_type=linkt');
//Hide "Linkts → Settings".
remove_submenu_page('edit.php?post_type=linkt', 'linkt_settings');
}
add_action('admin_menu', 'plt_hide_linkt_menus', 11);
function plt_hide_linkt_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Redirect Link" meta box.
remove_meta_box('linkt-details', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_linkt_metaboxes', 20);
function plt_hide_linkt_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Linkt - Click Statistics" widget.
remove_meta_box('linkt_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_linkt_dashboard_widgets', 20);