pods_ui

Easily create content admin screens with in-depth customization.

Description

pods_ui( (array|string|Pods) $obj, (bool) $deprecated = false ); 

This is the primary interface function that Pods runs off of. It's also the only function required to be run in order to have a fully functional Manage interface.

Parameters (2)

0. $obj — Optional. (array|string|Pods)
Configuration options for the UI
1. $deprecated — Optional. (bool) => false
Whether to enable deprecated options (used by pods_ui_manage)

Usage

  1. if ( !function_exists( 'pods_ui' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'pods-custom-content-types-and-fields/includes/classes.php'; 
  3.  
  4. // (optional) Configuration options for the UI 
  5. $obj = null; 
  6.  
  7. // (optional) Whether to enable deprecated options (used by pods_ui_manage) 
  8. $deprecated = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = pods_ui($obj, $deprecated); 
  12.  

Defined (1)

The function is defined in the following location(s).

/includes/classes.php  
  1. function pods_ui ( $obj, $deprecated = false ) { 
  2. require_once( PODS_DIR . 'classes/PodsUI.php' ); 
  3.  
  4. return new PodsUI( $obj, $deprecated );