Pods_Table_Storage

The Pods - Custom Content Types and Fields Pods Table Storage class.

Defined (1)

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

/components/Table-Storage.php  
  1. class Pods_Table_Storage extends PodsComponent { 
  2.  
  3. /** 
  4. * Do things like register/enqueue scripts and stylesheets 
  5. * @since 2.3 
  6. */ 
  7. public function __construct () { 
  8. if ( !pods_tableless() ) { 
  9. add_filter( 'pods_admin_setup_add_create_storage', '__return_true' ); 
  10. add_filter( 'pods_admin_setup_add_create_taxonomy_storage', '__return_true' ); 
  11.  
  12. add_filter( 'pods_admin_setup_add_extend_storage', '__return_true' ); 
  13. add_filter( 'pods_admin_setup_add_extend_taxonomy_storage', '__return_true' ); 
  14.  
  15. if ( ! function_exists( 'get_term_meta' ) ) { 
  16. add_filter( 'pods_admin_setup_add_extend_pod_type', array( $this, 'add_pod_type' ) ); 
  17.  
  18. /** 
  19. * Enable Taxonomy extending option in setup-add.php 
  20. * @param array $data Pod Type options 
  21. * @return array 
  22. */ 
  23. public function add_pod_type ( $data ) { 
  24. $data[ 'taxonomy' ] = __( 'Taxonomies (Categories, Tags, etc..)', 'pods' ); 
  25.  
  26. return $data; 
  27.