Developer API & Customization

Estimated reading: 2 minutes 10 views

1. Hooks: Actions and Filters

Zozonest follows WordPress best practices by providing Actions (to add content) and Filters (to change data).

  • Action Hooks: Use these to inject custom code at specific points, such as after a property is submitted or inside the Agent Dashboard.

    • Example: do_action('zozonest_after_property_submit', $property_id); — Useful for sending custom SMS alerts to admins when a new listing arrives.

  • Filter Hooks: Use these to modify existing data, such as changing the currency symbol format or adding new options to the Search Filter dropdown.

    • Example: apply_filters('zozonest_property_price_html', $price, $property_id); — Allows you to customize how the price is rendered (e.g., adding “Price on Request” logic).

2. Template Overriding (Theme Integration)

If you want to change the HTML structure of a property page beyond what Elementor allows, you can use the Template Overriding system.

  1. Create a folder in your child theme named zozonest.

  2. Copy a file from the plugin’s templates folder (e.g., single-property.php) into your child theme folder.

  3. Modify the code in your child theme. Zozonest will now prioritize your custom file over the default one.

3. Custom Fields (ACF Integration)

Zozonest often integrates with Advanced Custom Fields (ACF) to handle property technical data.

  • Add New Metadata: You can add custom fields like “Distance to Metro” or “Energy Rating.”

  • Displaying Data: Use the Elementor “Dynamic Tags” feature to pull these custom ACF fields into your property templates.

4. REST API Support

For those building mobile apps or connecting to external CRMs, Zozonest listings are typically exposed via the WordPress REST API.

  • Endpoints: You can fetch property data via wp-json/wp/v2/property.

  • Custom Endpoints: Developers can register custom routes to handle frontend submissions from external sources or sync with a local MLS (Multiple Listing Service).

5. Developer Tools Comparison

FeatureMethodUse Case
StylingCustom CSS / ElementorChanging button colors or layouts.
New LogicAction/Filter HooksAuto-assigning agents to specific cities.
Data StructureACF / Custom TaxonomiesAdding “Pet Friendly” or “Parking” specs.
SyncingREST API / WP All ImportImporting 1,000s of listings from a CSV.

Leave a Reply

Your email address will not be published. Required fields are marked *

Share this Doc

Developer API & Customization

Or copy link

CONTENTS

Forgot Password

Register