PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 3.3.9.1
Pods – Custom Content Types and Fields v3.3.9.1
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 / includes / compatibility.php
pods / includes Last commit date
compatibility 2 weeks ago access.php 2 weeks ago classes.php 2 weeks ago compatibility.php 2 weeks ago data.php 2 weeks ago forms.php 2 weeks ago general.php 2 weeks ago media.php 2 weeks ago
compatibility.php
42 lines
1 <?php
2
3 // Don't load directly.
4 if ( ! defined( 'ABSPATH' ) ) {
5 die( '-1' );
6 }
7
8 /**
9 * @package Pods\Global\Functions\Compatibility
10 */
11
12 // Add backwards compatibility for tribe() for old add-ons that may still call it.
13 if (
14 ! function_exists( 'tribe_is_not_min_php_version' )
15 && ! function_exists( 'tribe' )
16 && ! doing_action( 'activate_plugin' )
17 && ! did_action( 'activate_plugin' )
18 && (
19 ! defined( 'WP_SANDBOX_SCRAPING' )
20 || ! WP_SANDBOX_SCRAPING
21 )
22 && 'activate' !== pods_v( 'action' )
23 ) {
24 /**
25 * Compatibility function for Pods 2.x add-ons that may still call tribe().
26 *
27 * @since 3.0.5
28 *
29 * @param string|null $slug_or_class Either the slug of a binding previously registered using singleton or
30 * register or the full class name that should be automagically created or
31 * `null` to get the container instance itself.
32 *
33 * @return mixed|null The pods_container() object or null if the function does not exist yet.
34 */
35 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound
36 function tribe( $slug_or_class = null ) {
37 _doing_it_wrong( 'tribe', 'tribe() is no longer included in Pods Framework directly. Please use pods_container() instead.', '3.0' );
38
39 return pods_container( $slug_or_class );
40 }
41 }
42