How to correctly override a filter?

Try: function allow_daniel_edit( $caps = array(), $cap = ”, $user_id = 0, $args = array() ) { if ($user_id == 59) { return array( ‘bp_moderate’ ); // or some other permission or additional permissions } return $caps; } add_filter( ‘map_meta_cap’, ‘allow_daniel_edit’, 999, 4 );

Make plugin admin page visible to other roles

When the submenu is registered: add_submenu_page( ‘woocommerce’, __( ‘Betalingsmetoder’, ‘wcrb’ ), __( ‘Betalingsmetoder’, ‘wcrb’ ), ‘manage_options’, ‘payment-gateway-report’, ‘wcrb_report_page_callback’ ); You’ve specified that you only want it to be shown to users with the capability manage_options. So only administrators have that capability, so only administrators can see that page. It’s documented in the official WP docs … Read more

Manage Roles and Capabilities on Multi-site

I believe you’d need to modify user roles on each site individually (if I’m understanding your question correctly). There’s a great plugin I use frequently called WPFront User Role Editor that allows you to check/uncheck user capabilities like you mentioned. The free version should be fine for what you’re trying to do. I personally use … Read more