Remove node from multisites?

Here, try this: add_action( ‘admin_bar_menu’, ‘remove_nodes_from_mysites’, 999 ); function remove_nodes_from_mysites( $wp_admin_bar ) { $user_blogs = get_blogs_of_user( get_current_user_id() ); foreach ( $user_blogs as $user_blog ) { $wp_admin_bar->remove_node( “blog-” . $user_blog->userblog_id . “-n” ); $wp_admin_bar->remove_node( “blog-” . $user_blog->userblog_id . “-c” ); } }

admin aoolbar add_node() and pulling in my post slug

if you want to customise the links in the backend list, you can use this filter : add_filter(“post_row_actions”, function ($actions, \WP_Post $post) { if (“custom_post_type_slug” === $post->post_type) { // modify a existing action or add a new in $actions $actions[“other link”] = “<a href=\”url\”>other link</a>”; } return $actions; }, 10, 2);