-
Home
-
ActivityPub
- Tips
function plt_hide_activitypub_menus() {
//Hide "Outbox".
remove_menu_page('edit.php?post_type=ap_outbox');
//Hide "Settings → ActivityPub".
remove_submenu_page('options-general.php', 'activitypub');
//Hide "Users → Followers ⁂".
remove_submenu_page('users.php', 'activitypub-followers-list');
//Hide "Users → Extra Fields ⁂".
remove_submenu_page('users.php', 'http://127.0.0.1/wp-admin/edit.php?post_type=ap_extrafield');
}
add_action('admin_menu', 'plt_hide_activitypub_menus', 11);
Where do I put this code?