PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 3.3.9.2
Pods – Custom Content Types and Fields v3.3.9.2
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 / src / Pods / Integrations / YARPP.php
pods / src / Pods / Integrations Last commit date
Query_Monitor 4 days ago WPGraphQL 4 days ago Enfold.php 4 days ago Genesis.php 4 days ago Jetpack.php 4 days ago Polylang.php 4 days ago Query_Monitor.php 4 days ago Service_Provider.php 4 days ago WPML.php 4 days ago YARPP.php 4 days ago
YARPP.php
40 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 YARPP
12 *
13 * @since 2.8.0
14 */
15 class YARPP {
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 ( ! defined( 'YARPP_VERSION' ) ) {
28 return $supports;
29 }
30
31 $supports['supports_yarpp_support'] = [
32 'name' => 'supports_yarpp_support',
33 'label' => __( 'YARPP Support', 'pods' ),
34 'type' => 'boolean',
35 ];
36
37 return $supports;
38 }
39 }
40