Partner Discounts Menu
This guide explains how to hide the Partner Discounts menu from your Oxygen admin panel. This is useful for agencies who manage client sites and prefer not to display partner offers to their customers.
Using a Code Snippet
To disable the Partner Discounts menu, you’ll need to add a small PHP snippet to your WordPress site. You can add this code using any code snippets plugin. We recommend using WPCodeBox, which makes managing code snippets easy and safe. If you don’t own WPCodeBox yet, you may find a discount code available on the Partner Discounts page.
Alternatively, you can add this code to your theme’s functions.php file, though using a code snippets plugin is generally safer and won’t be affected by theme updates.
/**
* Disable Oxygen Partner Discounts menu
*/
add_action('admin_menu', function() {
remove_submenu_page('oxygen', 'oxygen-partner-discounts');
}, 999);This code will immediately hide the Partner Discounts submenu from both the Oxygen admin menu.
How It Works
The snippet uses WordPress’s native remove_submenu_page() function to remove the Partner Discounts menu item. It runs with a priority of 999 to ensure it executes after the menu has been created. This approach has zero performance impact and is completely safe to use.