PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 2.7.31.4
Pods – Custom Content Types and Fields v2.7.31.4
2.7.31.4 2.8.23.5 2.9.19.5 3.0.10.5 3.1.4.3 3.2.8.4 3.3.9.2 2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / components / Advanced-Content-Types.php
pods / components Last commit date
Builder 2 days ago I18n 2 days ago Migrate-CPTUI 2 days ago Migrate-Packages 2 days ago Roles 2 days ago Templates 2 days ago Advanced-Content-Types.php 2 days ago Advanced-Relationships.php 2 days ago Helpers.php 2 days ago Markdown.php 2 days ago Pages.php 2 days ago Table-Storage.php 2 days ago
Advanced-Content-Types.php
51 lines
1 <?php
2 /**
3 * Name: Advanced Content Types
4 *
5 * Description: A content type that exists outside of the WordPress post and postmeta table and uses custom tables instead. You most likely don't need these and we strongly recommend that you use Custom Post Types or Custom Taxonomies instead. FOR ADVANCED USERS ONLY.
6 *
7 * Version: 2.3
8 *
9 * Category: Advanced
10 *
11 * Tableless Mode: No
12 *
13 * @package Pods\Components
14 * @subpackage Advanced Content Types
15 */
16
17 if ( class_exists( 'Pods_Advanced_Content_Types' ) ) {
18 return;
19 }
20
21 /**
22 * Class Pods_Advanced_Content_Types
23 */
24 class Pods_Advanced_Content_Types extends PodsComponent {
25
26 /**
27 * {@inheritdoc}
28 */
29 public function init() {
30
31 if ( ! pods_tableless() ) {
32 add_filter( 'pods_admin_setup_add_create_pod_type', array( $this, 'add_pod_type' ) );
33 }
34 }
35
36 /**
37 * Enable Advanced Content Type option in setup-add.php
38 *
39 * @param array $data Pod Type options
40 *
41 * @return array
42 */
43 public function add_pod_type( $data ) {
44
45 $data['pod'] = __( 'Advanced Content Type (separate from WP, blank slate, in its own table)', 'pods' );
46
47 return $data;
48 }
49
50 }
51