PluginProbe
Advanced Custom Fields: Extended / 0.9.2.4
Advanced Custom Fields: Extended v0.9.2.4
0.9.2.7 0.9.2.6 0.9.2.5 0.8.6 0.8.6.1 0.8.6.3 0.8.6.5 0.8.6.6 0.8.6.7 0.8.6.8 0.8.6.9 0.8.7 0.8.7.1 0.8.7.2 0.8.7.3 0.8.7.4 0.8.7.5 0.8.7.6 0.8.8 0.8.8.1 0.8.8.10 0.8.8.11 0.8.8.2 0.8.8.3 0.8.8.4 All 92 releases
← All changes | includes/init.php +19 -0 0.9.2.30.9.2.4 View file →
@@ -15,8 +15,27 @@
15 15 return class_exists('ACF') && defined('ACF_PRO') && defined('ACF_VERSION') && version_compare(ACF_VERSION, '5.8', '>=');
16 16 }
17 17
18 18 /**
19 + * acfe_is_acf
20 + *
21 + * @param $v1
22 + * @param $v2
23 + *
24 + * @return bool
25 + */
26 +function acfe_is_acf($v1, $v2 = ''){
27 +
28 + // check only one version
29 + if(empty($v2)){
30 + return acf_version_compare(acf_get_setting('version'), '>=', $v1);
31 + }
32 +
33 + // check both versions
34 + return acf_version_compare(acf_get_setting('version'), '>=', $v1) && acf_version_compare(acf_get_setting('version'), '<', $v2);
35 +}
36 +
37 +/**
19 38 * acfe_is_acf_59
20 39 *
21 40 * @return bool
22 41 */