[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

oiktax_lazy_taxonomies_do_page() – Lazy implementation for "oik-taxonomies"

You appear to be a bot. Output may be restricted

Description

Lazy implementation for "oik-taxonomies"

oik-taxonomies options page Processing depends on the button that was pressed. There should only be one!

_oik_tax_add_taxonomy _oik_tax_add_oik_tax
Selection Validate? Perform action Display preview Display add Display edit Display select list
preview_taxonomy No n/a Yes – – -
delete_taxonomy No delete selected taxonomy – – – Yes
edit_taxonomy No n/a – – Yes Yes
_oik_tax_edit_taxonomy Yes update selected taxonomy – – Yes Yes

Usage

oiktax_lazy_taxonomies_do_page();

Parameters

Returns

void

Source

File name: oik-types/admin/oik-taxonomies.php
Lines:
1 to 56 of 56
function oiktax_lazy_taxonomies_do_page() {
  BW_::oik_menu_header( __( "taxonomies", "oik-types" ), "w100pc" );
  $validated = false;
  
  $preview_taxonomy = bw_array_get( $_REQUEST, "preview_taxonomy", null );
  $delete_taxonomy = bw_array_get( $_REQUEST, "delete_taxonomy", null );
  $edit_taxonomy = bw_array_get( $_REQUEST, "edit_taxonomy", null );
  
  
/** These codes override the ones from the list... but why do we need to do it? 
   * Do we have to receive the others in the $_REQUEST **?**
   *
  */
  $oik_tax_edit_taxonomy = bw_array_get( $_REQUEST, "_oik_tax_edit_taxonomy", null );
  $oik_tax_add_oik_tax = bw_array_get( $_REQUEST, "_oik_tax_add_oik_tax", null );
  $oik_tax_add_taxonomy = bw_array_get( $_REQUEST, "_oik_tax_add_taxonomy", null );
  if ( $oik_tax_add_taxonomy || $oik_tax_add_oik_tax ) {
    $preview_taxonomy = null;
    $delete_taxonomy = null;
    $edit_taxonomy = null; 
  }  
  
  
  if ( $preview_taxonomy ) {
    oik_box( NULL, NULL, "Preview", "oik_tax_preview" );
  } 
  
  if ( $delete_taxonomy ) { 
    _oik_tax_delete_taxonomy( $delete_taxonomy );
  }  

  if ( $edit_taxonomy ) {
    global $bw_taxonomy;
    $bw_taxonomies = get_option( "bw_taxonomies" );
    $bw_taxonomy = bw_array_get( $bw_taxonomies, $edit_taxonomy, null );
    $bw_taxonomy['args']['taxonomy'] = $edit_taxonomy; 
    bw_trace2( $bw_taxonomy );
  }
  if ( $oik_tax_edit_taxonomy ) {  
    $validated = _oik_tax_taxonomy_validate( false );
  }  
  
  if ( $oik_tax_add_oik_tax ) {
    $validated = _oik_tax_taxonomy_validate( true );
  }
  
  if ( $oik_tax_add_taxonomy || ( $oik_tax_add_oik_tax && !$validated )  ) {
    oik_box( NULL, NULL, "Add new", "oik_tax_add_oik_tax" );
  }
  
  if ( $edit_taxonomy || $oik_tax_edit_taxonomy || $validated ) {
    BW_::oik_box( null, null, __( "Edit taxonomy", "oik-types" ), "oik_tax_edit_taxonomy" );
  }
  BW_::oik_box( NULL, NULL, __( "taxonomies", "oik-types" ), "oik_tax_taxonomies" );
  oik_menu_footer();
  bw_flush();
}
 
 View on GitHub

Published: March 13, 2017 | Last updated: March 13, 2017

Information

Function name: oiktax_lazy_taxonomies_do_page
Plugin ref: oik-types
Version: 2.3.0
Sourcefile: admin/oik-taxonomies.php
File ref: admin/oik-taxonomies.php
Deprecated?: No
API Letters: D,L,O,P,T

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