PluginProbe
Pods – Custom Content Types and Fields / 2.9.19.4
Pods – Custom Content Types and Fields v2.9.19.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 All 42 releases
pods / src / Pods / Integrations / YARPP.php
YARPP.php
35 lines 622 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Pods\Integrations;
4
5 /**
6 * Class YARPP
7 *
8 * @since 2.8.0
9 */
10 class YARPP {
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 ( ! defined( 'YARPP_VERSION' ) ) {
23 return $supports;
24 }
25
26 $supports['supports_yarpp_support'] = [
27 'name' => 'supports_yarpp_support',
28 'label' => __( 'YARPP Support', 'pods' ),
29 'type' => 'boolean',
30 ];
31
32 return $supports;
33 }
34 }
35