Passing nonce at admin menu link
WordPress do not accept nonce in the slug that you are trying to provide in the above code. I mean in this line: ‘my_dashboard&nonce-field=’ . wp_create_nonce(‘my_action’), ‘show_dashboard’ I was facing the same issue like you are facing. As the admin menu already verified for specific users so we don’t need to verify it again with … Read more