PluginProbe
Property Hive / 2.3.0
Property Hive v2.3.0
2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 1.4.62 All 260 releases
← All changes | includes/ph-conditional-functions.php +5 -0 2.2.32.3.0 View file →
@@ -17,9 +17,11 @@
17 17 *
18 18 * @access public
19 19 * @return bool
20 20 */
21 +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper is_propertyhive; the established callable name is part of the plugin/extension API and must remain stable.
21 22 function is_propertyhive() {
23 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Existing public Property Hive extension hook is_propertyhive; changing the established name would detach installed callbacks.
22 24 return apply_filters( 'is_propertyhive', ( is_search_results() || is_property() ) ? true : false );
23 25 }
24 26
25 27 if ( ! function_exists( 'is_search_results' ) ) {
@@ -29,8 +31,9 @@
29 31 *
30 32 * @access public
31 33 * @return bool
32 34 */
35 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper is_search_results; the established callable name is part of the plugin/extension API and must remain stable.
33 36 function is_search_results() {
34 37 return ( is_post_type_archive( 'property' ) || is_page( ph_get_page_id( 'search_results' ) ) ) ? true : false;
35 38 }
36 39 }
@@ -42,8 +45,9 @@
42 45 *
43 46 * @access public
44 47 * @return bool
45 48 */
49 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper is_property; the established callable name is part of the plugin/extension API and must remain stable.
46 50 function is_property() {
47 51 return is_singular( array( 'property' ) );
48 52 }
49 53 }
@@ -55,8 +59,9 @@
55 59 *
56 60 * @access public
57 61 * @return bool
58 62 */
63 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper is_ajax; the established callable name is part of the plugin/extension API and must remain stable.
59 64 function is_ajax() {
60 65 return defined( 'DOING_AJAX' );
61 66 }
62 67 }