PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 3.3.9.1
Pods – Custom Content Types and Fields v3.3.9.1
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 / src / Pods / Integrations / Genesis.php
pods / src / Pods / Integrations Last commit date
Query_Monitor 2 weeks ago WPGraphQL 2 weeks ago Enfold.php 2 weeks ago Genesis.php 2 weeks ago Jetpack.php 2 weeks ago Polylang.php 2 weeks ago Query_Monitor.php 2 weeks ago Service_Provider.php 2 weeks ago WPML.php 2 weeks ago YARPP.php 2 weeks ago
Genesis.php
52 lines
1 <?php
2
3 namespace Pods\Integrations;
4
5 // Don't load directly.
6 if ( ! defined( 'ABSPATH' ) ) {
7 die( '-1' );
8 }
9
10 /**
11 * Class Genesis
12 *
13 * @since 2.8.0
14 */
15 class Genesis {
16
17 /**
18 * Add additional supports options for post types.
19 *
20 * @since 2.8.0
21 *
22 * @param array $supports List of supports options for post types.
23 *
24 * @return array List of supports options for post types.
25 */
26 public function add_post_type_supports( array $supports ) {
27 if ( ! function_exists( 'genesis' ) ) {
28 return $supports;
29 }
30
31 $supports['supports_genesis_seo'] = [
32 'name' => 'supports_genesis_seo',
33 'label' => __( 'Genesis: SEO', 'pods' ),
34 'type' => 'boolean',
35 ];
36
37 $supports['supports_genesis_layouts'] = [
38 'name' => 'supports_genesis_layouts',
39 'label' => __( 'Genesis: Layouts', 'pods' ),
40 'type' => 'boolean',
41 ];
42
43 $supports['supports_genesis_simple_sidebars'] = [
44 'name' => 'supports_genesis_simple_sidebars',
45 'label' => __( 'Genesis: Simple Sidebars', 'pods' ),
46 'type' => 'boolean',
47 ];
48
49 return $supports;
50 }
51 }
52