[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

oikcpt_lazy_types_do_page() – oik-types – Custom Post Types page

You appear to be a bot. Output may be restricted

Description

oik-types – Custom Post Types page

Processing depends on the button that was pressed. There should only be one!

_oik_cpt_add_type | _oik_cpt_add_oik_cpt |
Selection Validate? Perform action Display preview Display add Display edit Display select list
preview_type No n/a Yes – – -
delete_type No delete selected type – – – Yes
edit_type No n/a – – Yes Yes
_oik_cpt_edit_type Yes update selected type – – Yes Yes

Usage

oikcpt_lazy_types_do_page();

Parameters

Returns

void

Source

File name: oik-types/admin/oik-types.php
Lines:
1 to 54 of 54
function oikcpt_lazy_types_do_page() {
  BW_::oik_menu_header( __( "types", "oik-types" ), "w100pc" );
  $validated = false;
  
  $preview_type = bw_array_get( $_REQUEST, "preview_type", null );
  $delete_type = bw_array_get( $_REQUEST, "delete_type", null );
  $edit_type = bw_array_get( $_REQUEST, "edit_type", 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_cpt_edit_type = bw_array_get( $_REQUEST, "_oik_cpt_edit_type", null );
  $oik_cpt_add_oik_cpt = bw_array_get( $_REQUEST, "_oik_cpt_add_oik_cpt", null );
  $oik_cpt_add_type = bw_array_get( $_REQUEST, "_oik_cpt_add_type", null );
  if ( $oik_cpt_add_type || $oik_cpt_add_oik_cpt ) {
    $preview_type = null;
    $delete_type = null;
    $edit_type = null; 
  }  
  
  
  if ( $preview_type ) {
    BW_::oik_box( NULL, NULL, __( "Preview", "oik-types" ), "oik_cpt_preview" );
  } 
  
  if ( $delete_type ) { 
    _oik_cpt_delete_type( $delete_type );
  }  

  if ( $edit_type ) {
    bw_build_overridden_type( $edit_type );
  }
  if ( $oik_cpt_edit_type ) {  
    $validated = _oik_cpt_type_validate( false );
  }  
  
  if ( $oik_cpt_add_oik_cpt ) {
    $validated = _oik_cpt_type_validate( true );
  }
  
  if ( $oik_cpt_add_type || ( $oik_cpt_add_oik_cpt && !$validated )  ) {
    BW_::oik_box( NULL, NULL, __( "Add new", "oik-types" ), "oik_cpt_add_oik_cpt" );
  }
  
  if ( $edit_type || $oik_cpt_edit_type || $validated ) {
    BW_::oik_box( null, null, __( "Edit type", "oik-types" ), "oik_cpt_edit_type" );
  }
  BW_::oik_box( NULL, NULL, __( "types", "oik-types" ) , "oik_cpt_types" );
  //oik_box( NULL, NULL, "registered types", "oik_cpt_registered_types" );
  BW_::oik_box( null, null, __( "registered types", "oik-types" ), "oik_cpt_registered_types" );
  oik_menu_footer();
  bw_flush();
}
 
 View on GitHub

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

Information

Function name: oikcpt_lazy_types_do_page
Plugin ref: oik-types
Version: 2.3.0
Sourcefile: admin/oik-types.php
File ref: admin/oik-types.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