[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

oik_clone_admin_head() – Implement "admin_head-oik-options_page_oik_clone" for oik-clone

You appear to be a bot. Output may be restricted

Description

Implement "admin_head-oik-options_page_oik_clone" for oik-clone

When 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) 
  1. -10-29T16:29:11+00:00 2.482412 0.001367 171 cf=admin_head 7 0 27392328/27509456 F=208 ocw_admin_head(4)
  2. 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

void

Source

File name: oik-clone/oik-clone.php
Lines:
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

Published: November 1, 2016 | Last updated: November 1, 2016

Information

Function name: oik_clone_admin_head
Plugin ref: oik-clone – clone your WordPress content
Version: 2.1.1
Sourcefile: oik-clone.php
File ref: oik-clone.php
API type: for
Deprecated?: No
API Letters:

Recent plugin updates

oik-weight-zone-shipping v0.2.6 oik-weight-zone-shipping v0.2.6 has been tested with WooCommerce 7.4.0. ...
sb-chart-block v1.2.3 SB Chart Block v1.2.3 contains a fix for an Uncaught Error: Call to undefined function bw_trace2()  ...
SB Chart Block v1.2.1 Update to SB Chart Block v1.2.0 for custom colors, font size options and multiple y-axis charts.  ...
oik-css v2.1.0 Update to oik-css v2.1.0 for the ability to style CSS and GeSHi output in documentation. ...
oik-types v2.3.0 Update to oik-types v2.3.0 for improved control over sort order on archives ...

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: herb@bobbingwide.com

Weight shipping plugins

Find out which cart weight shipping plugin you need for your WooCommerce site.
Which cart weight based plugin do I need?

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2023. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins
WordPress 6.1.1. PHP: 7.4.33. Memory limit: 768M