Description
Implement "admin_menu" for plugin updates- We need to add the oik_plugins submenu if it's not already present.
- We may need to create the oik menu and its first submenu item.
Usage
OIK_Plugin_Update::admin_menu();Parameters
Returns
voidSource
File name: oik/libs/class-oik-plugin-update.phpLines:
1 to 23 of 23
function admin_menu() { $plugins_slug = $this->query_menu_subitem( "oik_plugins", "oik_menu" ); if ( !$plugins_slug ) { $loaded = $this->bootstrap_oik_libs(); if ( $loaded ) { $dependencies = array( "class-bobbcomp" => "3.1.0" , "bobbfunc" => "3.2.0" , "class-oik-update" => "3.0.1" , "oik-l10n" => "3.2.0" , "class-BW-" => "3.2.0" , "class-oik-remote" => "0.1.0" ); $loaded = $this->require_dependencies( $dependencies ); if ( $loaded ) { oik_l10n_enable_jti(); $this->add_oik_menu(); add_submenu_page( 'oik_menu', __( 'oik plugins', null ), __('Plugins', null), 'manage_options', 'oik_plugins', array( $this, 'oik_plugins_do_page' ) ); $this->admin_action_upgrade_plugin(); do_action( "oik_register_plugin_server" ); } } } }View on GitHub View on Trac
Called by
Invoked by
Calls
1 to 6 of 6
- oik_l10n_enable_jti() – Enables/disables "Just Translate It"
- OIK_Plugin_Update::add_oik_menu() – Add the oik updates and Updates menu items if required
- OIK_Plugin_Update::admin_action_upgrade_plugin() – Prepares for converting local requests to use sslverify=false
- OIK_Plugin_Update::bootstrap_oik_libs() – Bootstrap the shared library system
- OIK_Plugin_Update::query_menu_subitem() – Query if the menu subitem exists
- OIK_Plugin_Update::require_dependencies() – Load the dependent libraries
