Pods_Advanced_Content_Types

The Pods - Custom Content Types and Fields Pods Advanced Content Types class.

Defined (1)

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

/components/Advanced-Content-Types.php  
  1. class Pods_Advanced_Content_Types 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_pod_type', array( $this, 'add_pod_type' ) ); 
  10.  
  11. /** 
  12. * Enable Advanced Content Type option in setup-add.php 
  13. * @param array $data Pod Type options 
  14. * @return array 
  15. */ 
  16. public function add_pod_type ( $data ) { 
  17. $data[ 'pod' ] = __( 'Advanced Content Type (separate from WP, blank slate, in its own table)', 'pods' ); 
  18.  
  19. return $data; 
  20.