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