Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save propertyhive/ddaf0c1d9df6204ea0ec3095dd8d39e9 to your computer and use it in GitHub Desktop.
Save propertyhive/ddaf0c1d9df6204ea0ec3095dd8d39e9 to your computer and use it in GitHub Desktop.
Add field to REST API
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