Developers
Settings & Admin
Tabs on Oxygen's settings page, and the switches behind its admin screens.
Settings page
oxygen_register_admin_settings_page_register_tabs
Action. Add your own tab to the Oxygen settings page. Call
BreakdanceAdminSettingsPageaddTab($name, $slug, $callback, $order) from it — the
callback prints the tab's contents, and $order decides where it sits in the row — Oxygen's
own tabs are spread from 1 to 9999, so pick a number in the gap you want.
add_action('oxygen_register_admin_settings_page_register_tabs', function () {
BreakdanceAdminSettingsPageaddTab(
__('Weather Service', 'my-plugin'),
'my_plugin_weather',
'MyPluginSettingsrender_tab',
3000
);
});
namespace MyPluginSettings;
function render_tab()
{
echo '<h2>Weather Service</h2>';
// your settings form
}
The tab appears at admin.php?page=oxygen_settings&tab=my_plugin_weather. For a single credential you
don't need a tab at all — register an API key field instead.
Switches
oxygen_disable_default_api_keys
Filter, false. Return true to suppress Oxygen's built-in
API key fields.
oxygen_disable_track_view_and_session_counts
Filter, false. Return true to stop Oxygen recording view and session counts.