PluginProbe
Property Hive / 2.3.0
Property Hive v2.3.0
2.3.1 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 All 261 releases
← All changes | includes/class-ph-third-party-contacts.php +3 -2 1.4.552.3.0 View file →
@@ -14,14 +14,15 @@
14 14 * @package PropertyHive/Classes
15 15 * @category Class
16 16 * @author PropertyHive
17 17 */
18 +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Legacy public global class PH_Third_Party_Contacts; preserving the existing PH_* class name is required for plugin and extension compatibility.
18 19 class PH_Third_Party_Contacts {
19 20
20 21 private $categories;
21 22
22 23 public function __construct() {
23 - $this->categories = array(
24 + $this->categories = apply_filters( 'propertyhive_third_party_contact_categories', array(
24 25 '1' => __( 'Accountant', 'propertyhive' ),
25 26 '2' => __( 'Architect', 'propertyhive' ),
26 27 '3' => __( 'Board Contractor', 'propertyhive' ),
27 28 '4' => __( 'Builder', 'propertyhive' ),
@@ -34,9 +35,9 @@
34 35 '11' => __( 'Roofer', 'propertyhive' ),
35 36 '12' => __( 'Solicitor', 'propertyhive' ),
36 37 '13' => __( 'Surveyor', 'propertyhive' ),
37 38 '14' => __( 'Other', 'propertyhive' ),
38 - );
39 + ) );
39 40 }
40 41
41 42 /**
42 43 * Auto-load in-accessible properties on demand.