| @@ -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. |