PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 3.2.7
Pods – Custom Content Types and Fields v3.2.7
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 / Jetpack.php
pods / src / Pods / Integrations Last commit date
Query_Monitor 1 year ago WPGraphQL 3 years ago Enfold.php 1 year ago Genesis.php 4 years ago Jetpack.php 4 years ago Polylang.php 1 year ago Query_Monitor.php 1 year ago Service_Provider.php 1 year ago WPML.php 1 year ago YARPP.php 4 years ago
Jetpack.php
41 lines
1 <?php
2
3 namespace Pods\Integrations;
4
5 /**
6 * Class Jetpack
7 *
8 * @since 2.8.0
9 */
10 class Jetpack {
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 ( ! class_exists( 'Jetpack' ) ) {
23 return $supports;
24 }
25
26 $supports['supports_jetpack_publicize'] = [
27 'name' => 'supports_jetpack_publicize',
28 'label' => __( 'Jetpack Publicize Support', 'pods' ),
29 'type' => 'boolean',
30 ];
31
32 $supports['supports_jetpack_markdown'] = [
33 'name' => 'supports_jetpack_markdown',
34 'label' => __( 'Jetpack Markdown Support', 'pods' ),
35 'type' => 'boolean',
36 ];
37
38 return $supports;
39 }
40 }
41