You appear to be a bot. Output may be restricted
Description
Implement "admin_head-oik-options_page_oik_clone" for oik-cloneWhen we're trying to display a List Table then hooking into nav-tabs is too late to load the classes since WordPress's get_column_headers() function invokes the hook to find the columns to be displayed. and we need to have instantiated the class in order for this hook to have been registered. Therefore, we need to hook into "admin_head" and determine what's actually happening. Actually, we can hook into the specific action for the page.
C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone-wxr\oik-clone-wxr.php(72:0)
- -10-29T16:29:11+00:00 2.482412 0.001367 171 cf=admin_head 7 0 27392328/27509456 F=208 ocw_admin_head(4)
pagenow admin.php C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone-wxr\oik-clone-wxr.php(73:0) 2014-10-29T16:29:11+00:00 2.483206 0.000794 172 cf=admin_head 7 0 27392400/27509456 F=208 ocw_admin_head(6) hook_suffix oik-options_page_oik_clone
Usage
oik_clone_admin_head();
Parameters
Returns
voidSource
File name: oik-clone/oik-clone.phpLines:
1 to 29 of 29
function oik_clone_admin_head() { $tab = bw_array_get( $_REQUEST, "tab", null ); switch ( $tab ) { case "ms": oik_require( "admin/oik-clone-ms.php", "oik-clone" ); oik_clone_ms_lazy_nav_tabs_oik_clone( $tab ); break; case "self": oik_require( "admin/oik-clone-self.php", "oik-clone" ); oik_clone_lazy_nav_tabs_oik_clone( "self" ); break; case null: $_REQUEST[ 'tab'] = "servers"; case "servers": oik_require( "admin/oik-clone-servers.php", "oik-clone" ); oik_clone_lazy_nav_tabs_servers(); break; case 'slave': oik_require( 'admin/oik-clone-slave.php', 'oik-clone'); oik_clone_lazy_nav_tabs_slave(); default: // Someone else will handle this } }View on GitHub