You appear to be a bot. Output may be restricted
Description
Implement "bw_nav_tabs_oik_clone" filter for oik-cloneReturn the nav tabs supported by oik-clone
Usage
oik_clone_nav_tabs( $nav_tabs, $tab );
Parameters
- $nav_tabs
- ( mixed ) required –
- $tab
- ( mixed ) required –
Returns
voidTO DO
the filter functions should check global $pagenow before adding any tabs – to support multiple pages using this logicTO DO
support 'section' – like WooCommerce – So that the Authentication area for WP-API is simplerSource
File name: oik-clone/admin/oik-clone.phpLines:
1 to 15 of 15
function oik_clone_nav_tabs( $nav_tabs, $tab ) { $nav_tabs['self'] = "Self"; $nav_tabs['servers'] = "Settings"; if ( is_multisite() ) { $nav_tabs['ms'] = "MultiSite"; } //$nav_tabs['basic'] = "WP-API Basic"; //$nav_tabs['oauth1'] = "WP-API OAuth1"; //$nav_tabs['custom'] = "WP-API Custom"; //$nav_tabs['import'] = "Import"; $nav_tabs['slave'] = "Slave"; return( $nav_tabs); }View on GitHub