Query_Monitor
4 months ago
WPGraphQL
4 months ago
Enfold.php
4 months ago
Genesis.php
4 months ago
Jetpack.php
4 months ago
Polylang.php
4 months ago
Query_Monitor.php
4 months ago
Service_Provider.php
4 months ago
WPML.php
4 months ago
YARPP.php
4 months 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 |