Created
May 22, 2024 17:59
-
-
Save propertyhive/ddaf0c1d9df6204ea0ec3095dd8d39e9 to your computer and use it in GitHub Desktop.
Add field to REST API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'propertyhive_rest_api_property_fields', 'add_additional_fields_to_property_rest_api' ); | |
function add_additional_fields_to_property_rest_api($field_array) | |
{ | |
$field_array[] = 'address_name_number'; | |
return $field_array; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment