WP Property Drive
WP Property Drive manages estate agency properties on WordPress and ClassicPress. It stores listings as property posts, imports listings from supported CRM and portal feeds, and provides property grids, search forms, maps, galleries, alerts, agent profiles, and online offers.
This manual covers WP Property Drive 4.3.0 for site administrators and developers. It is based on the functionality registered by the plugin source. Features marked Pro, Optional, Beta, Legacy, Deprecated, or Incomplete may not be available on every installation.
Contents
- Requirements and installation
- Concepts and data model
- Administrator guide
- Frontend features
- Importers and integrations
- Shortcode quick start
- Shortcode reference
- Block reference
- Operations and troubleshooting
- Developer reference
- Known limitations
Requirements and installation
| Requirement | Minimum |
|---|---|
| WordPress | 6.2 |
| PHP | 8.0 |
| Plugin version documented | 4.3.0 |
Install the plugin in wp-content/plugins/wp-property-drive, activate WP Property Drive, and open Property Drive in the dashboard. Activation creates the property-alert table, initializes default options, and schedules enabled recurring tasks. Configure the agency identity, design, search, integrations, and importer credentials before publishing frontend pages.
WP-Cron must be able to run for scheduled imports, alerts, and expiry processing. On low-traffic sites, invoke wp-cron.php from the system scheduler so imports do not depend on page visits.
Some functionality is license-gated. A feature being present in the source does not imply that it is enabled for the current site.
Concepts and data model
Content types
| Post type | Purpose | Availability |
|---|---|---|
property |
Property listings and their imported or manually entered data | Core |
agent |
Agent profiles used by team and property-agent displays | Core |
offer |
Offers and bids associated with properties | 4Bids/Pro UI |
slide |
Slides used by the Supernova slider | Core |
template_part |
Reusable property layout content | Core |
grid_ad |
Blocks inserted at configured property-grid positions | Core module; UI may be gated |
Properties use the hierarchical property_type, property_county, and property_area taxonomies. Their remaining data is stored in post meta. Important fields include:
| Meta key | Meaning |
|---|---|
property_status |
Availability, such as For Sale, To Let, Sale Agreed, Let Agreed, or Sold |
property_market |
Market group, such as Residential Sales or Commercial Lettings |
price, price_prefix, price_term, hide_price |
Price and display settings |
bedrooms, bathrooms, property_size, property_land_size |
Property measurements |
latitude, longitude |
Map coordinates |
wppd_pics, wppd_primary_image |
Gallery and primary image URLs |
property_tours, property_floors, brochure_1 |
Tours, floorplans, and brochure |
agent_name, agent_email, agent_number |
Imported agent details |
source, importer_id, list_reference |
Import source and source identifiers |
property_lock |
Prevents supported importers and cleanup jobs from changing the property |
property_is_doing_cron |
Temporary importer cleanup marker |
country |
Country used to filter listings |
wppd_is_exclusive |
Explicit exclusive-listing flag |
Do not rename these keys in custom code. Search, templates, importers, and integrations share them as a contract.
Status and market behavior
Importers normalize source-specific categories into property_status and property_market. Common active statuses include For Sale, For Auction, To Let, and For Sale/To Let. Agreed, let, and sold statuses remain available for historic listings and ordering.
property_order groups active properties before agreed and completed properties. Manual grid ordering uses property_position. The exact status mapping varies by importer and can also be affected by settings under Rules.
Administrator guide
Initial configuration
- Open Property Drive > Agency and enter the agency identity, general contact details, logo, currency, and property author.
- Use Design and Sidebar to select property card, single-property, gallery, and color settings.
- Use Search to configure the results page, visible search fields, feature choices, active statuses, and location autocomplete.
- Open Integrations, enable only the required modules, then complete each enabled importer’s settings page.
- Run a manual import from Tools and inspect its totals before enabling automatic synchronization.
- Create frontend pages using the examples in Shortcode quick start.
- Confirm maps, property links, images, and search filters before scheduling recurring imports.
Admin areas
The main settings interface includes agency, design, search, users, email, integrations, rules, notifications, reports, settings, tools, cron, help, and source-specific importer pages. Settings appears immediately before System Tools. Tabs appear conditionally according to the license and enabled modules.
In Settings, Delete plugin settings on uninstall is off by default. When enabled, deleting the plugin removes its current and legacy options and the property alert subscriptions table for that site. Plugin cron events are removed regardless of this setting. Properties, users, media, metadata, other custom tables, and shared settings are retained. On multisite, each site’s preference is respected. Deactivation does not invoke this cleanup. The full list of removed options is in uninstall.php.
- Dashboard shows plugin and import status, plus companion products (Core AI Studio, Supernova, Lighthouse, W3P SEO) and whether each is active.
- Agency controls agency identity and common listing defaults, including optional CC addresses for viewing requests and
[cf9]quick enquiries. - Design and Sidebar control cards and single-property presentation.
- Search controls search fields, result destinations, sorting, and location behavior.
- Users and Email control account pages, registration, redirects, and notification templates.
- Integrations enables optional importers and services.
- Rules changes selected importer mappings and display behavior.
- Notifications configures agent listing alerts and webhooks.
- Tools provides manual imports, cleanup, and bulk operations. Review the selected source before running destructive actions.
- API Logs and importer session details provide diagnostics.
Most settings require the manage_options capability.
Managing properties
Properties can be entered manually or imported. A manually protected listing should have property_lock enabled before an importer runs. Imported properties are matched primarily by importer_id; changing that value can create a second listing on the next run.
Images are normally stored as remote URLs in wppd_pics. Maps require valid latitude and longitude. A title is normally derived from the display address and may include an Eircode when the corresponding option is enabled.
The default public permalink is based on the property post type. Re-save Settings > Permalinks after changing rewrite or post-type settings.
Agents and teams
Agent profiles use the agent post type. Imported agent_email values are used to match a property to a profile. Agency details act as a fallback when no matching profile exists. Team shortcodes can render a list, individual details, or a carousel.
User accounts
The plugin supplies signup, login, account, and dashboard shortcodes. It can collect first name, last name, telephone, password, and 4Bids terms acceptance. Account-page and login redirects are configurable. Site roles and capabilities still govern administrative access.
Alerts and notifications
There are two related alert systems:
- Property alerts are a Pro feature that lets visitors subscribe to matching listings by email. Subscriptions are stored in the plugin’s alert table.
- Agent listing alerts notify configured agency recipients when eligible new For Sale listings are imported. The same batch can be posted to a configured webhook. A property that an import later moves into For Sale from any other status (for example Coming Soon, or Sale Agreed when a sale falls through) is treated as a new listing again.
Test recipient lists and webhooks before enabling their cron task. Alert flags on each property prevent repeat notifications within a listing cycle.
4Bids
4Bids adds online offers and auctions to eligible properties. It stores offers in the offer post type and supports bidder approval, minimum or reserve prices, bid increments, auction start/end dates, extension near closing time, withdrawals, cancellation, and bidder/agent notifications. Acquaint installations can optionally synchronize offer actions.
Enable bidding only after the account page, terms, email delivery, property price rules, and closing-time behavior have been tested. See 4Bids for setup and bidder management.
Frontend features
Property listings and search
[property-grid] renders property cards with taxonomy and meta filters, sorting, count display, optional grid ads, traditional pagination, numbered pagination, or AJAX load more. [property-search] renders the configurable GET search form, and [search-form-results] renders its results.
Available search controls depend on the Search configuration and can include market groups, property types, statuses, living types, features, keywords, locations, counties, address, price, bedrooms, bathrooms, and ordering.
Maps
WP Property Drive uses Leaflet and OpenStreetMap. It provides all-property, filtered, and single-property maps. Map output requires valid property coordinates. Depending on the view, maps can include clustering, popups, scale, fullscreen controls, and grid/map switching.
The single-property sidebar ([property-map]) uses the canonical OpenStreetMap tile endpoint and explicitly sends the site’s origin as the tile request referrer, even when the page uses a restrictive referrer policy. OpenStreetMap requires this identification under its tile usage policy. If tiles show “Access blocked”, check the browser’s tile requests for a valid Referer header after deployment and clear any cached page output. Persistent blocks may require investigation of traffic limits or other policy violations.
Galleries, media, and tours
The plugin includes carousel, Flickity, LightGallery, Swiper, Flexbin, floorplan, and slide-based displays. Property tours, Flickity, and Swiper share support for YouTube (including Shorts), Vimeo, Matterport, Giraffe360, Kuula, Captur3d, EyeSpy360, MIKAI, Panoroo, PropertyPix, and legacy client tours. Existing custom embed markup remains supported. Provider behavior can change; test supplied URLs on the live site’s content-security policy.
Imported and manually entered tours use the same rendering path. Blank entries and duplicates within each metadata source are removed, with imported tours displayed first. Generated tour iframes load lazily in content and eagerly in galleries; Vimeo uses its provider-supplied oEmbed markup and falls back to a visible link if unavailable. The existing gallery tour-visibility setting still applies.
Property descriptions also use WordPress native auto-embedding for supported URLs, including YouTube, placed on their own line or in an Embed block. Inline links remain links. Embedding depends on WordPress being able to retrieve the provider’s oEmbed response.
Templates and reusable layouts
The plugin can route single properties through default, Cozy, Gridzy, custom, sidebar, and print templates. Many template sections are also shortcodes, allowing reusable blocks or custom layouts to compose a property page from fields, galleries, maps, agents, and sharing tools.
Grid ads
Grid ads are reusable grid_ad posts inserted into [property-grid] output. Each ad has a position, column span, and optional URL-path target. Set ads="0" on a grid to suppress them.
Importers and integrations
Import lifecycle
Most feed modules follow this lifecycle:
- Fetch and validate the remote feed.
- Match source IDs to existing
propertyposts. - Insert or update unlocked properties and assign taxonomies.
- Store source, images, status, market, address, coordinates, agent, and source-specific fields.
- Reconcile properties missing from the current feed according to that importer’s cleanup rules.
- Store last-run or session information and invalidate frontend caches.
Cleanup behavior is source-specific and may delete, draft, lock, or change the status of missing listings. Always test a feed on a staging site and verify that it is complete before enabling automatic cleanup.
Importer matrix
| Importer | Module directory | Availability | Input | Automation and notable behavior |
|---|---|---|---|---|
| Property Drive | property-drive |
Optional; primary 4Property source | HTTPS JSON API, single or multiple keys | Manual and scheduled import; country/overseas options, feed snapshots, duplicate and missing-property cleanup |
| Acquaint CRM | acquaint |
Optional | XML feed URLs; optional API synchronization | Manual and scheduled import; stores the later of marketdate and addeddate as the creation date, preserving the addeddate time when the dates match. Skips archived/valuation records, maps Under Offer, imports viewings and can synchronize 4Bids actions |
| Daft | daft |
Optional | Daft SOAP API | Paginated manual/scheduled import with session totals and missing-listing transitions |
| MyHome v2 | myhomev2 |
Optional | HTTPS JSON API | API key and correlation configuration; manual/scheduled import with source status mapping |
| Feedcruncher | feedcruncher |
Optional, Beta | XML feed URLs | Manual/scheduled import with source-specific sold handling |
| eGO Real Estate | egorealestate |
Optional | Uploaded XML file | Manual full-file import; localized descriptions and missing-record reconciliation |
| PropertyCRM | propertycrm |
Optional | Remote CRM API | Manual/scheduled import and standard source reconciliation |
| RES CRM | rescrm |
Optional | Remote XML feed | Manual/scheduled import; batches large feeds and schedules continuation jobs |
| XML2U | xml2u |
Optional | Remote XML feed | Manual/scheduled import; legacy implementation has fewer performance safeguards |
The older modules/myhome implementation is not loaded by the current bootstrap. Use MyHome v2 unless maintaining a customized legacy installation.
Other integrations
| Integration | Availability | Function |
|---|---|---|
| Agents | Core | Agent profile post type, property-agent matching, and team displays |
| Property alerts | Pro | Visitor saved-search subscriptions and matching-listing emails |
| Agent listing alerts | Core configuration | New-listing emails, diagnostics, and optional JSON webhook batches |
| 4Bids | Loaded module; Pro administration | Offers, auctions, bidder approval, notifications, and optional Acquaint synchronization |
| Moneysherpa | Loaded module; configuration may be Pro-gated | Mortgage calculator iframe using the current property price and configured agency email/colors |
| Grid Ads | Loaded module | Targeted reusable content inserted into property grids |
| Multi-agent mode | Optional | Multiple Property Drive API keys and a dedicated import schedule |
| Slider and Swiper | Core | Slide and property media carousels |
| Akismet/contact forms | Core integration | Spam checking for the bundled cf8/cf9 contact form output |
| IO events | Internal | Sends operational event information to the 4Property service |
Shortcode quick start
Create a main properties page:
[property-grid count="24" columns="3" pagination="loadmore" views="yes" sort="yes"]
Create a search page and point its configured results URL to a page containing:
[property-search layout="basic" results="/properties/"]
[search-form-results count="24" columns="3" pagination="yes" views="yes" sort="yes"]
Create a filtered sales grid:
[property-grid status="For Sale" property-type="House,Apartment" county="dublin" min-price="250000" max-price="750000"]
Compose reusable single-property content:
[property-flickity]
[property-header]
[property-attributes]
[property-description]
[property-features]
[property-floorplans]
[property-map]
[property-agent]
[property-toolbar]
Shortcodes that read the current property must be used inside a property request, property template, or a loop where the global post is the intended property.
Shortcode reference
Property grid
[property-grid] is the main listing shortcode.
| Attribute | Default | Purpose |
|---|---|---|
status |
empty | Comma-separated property statuses |
type, property-type |
empty | Type/group filters; prefer property-type for property taxonomy values |
property-type-single |
empty | Single property-type filter |
exclude-type |
empty | Excluded property types |
category |
empty | Market/category filter |
location, county, country |
empty | Area, county, and country filters |
ignore |
new-dev |
Listing group ignored by the query builder |
count |
24 |
Properties per page |
pagination |
yes |
yes, numbers, loadmore, or no |
has-tour |
empty | Restrict to properties with tour data |
class |
empty | Additional wrapper class |
property-card-style |
empty | Card template/style override |
carousel, fullwidth |
0 |
Alternate layout flags |
columns |
configured grid size, normally 3 |
Grid columns |
views, sort, showcount |
no |
Enable view switcher, sorting, or result count |
in, exclude |
empty | Comma-separated included or excluded post IDs |
author, agent-email |
empty | Restrict by post author or agent email |
grid-type |
empty | Grid presentation override |
showexclusive |
0 |
Enable exclusive-listing behavior |
exclude_children |
no |
Exclude child taxonomy terms where supported |
property-office-id, importer-id |
empty | Restrict by office or source ID |
min-price, max-price |
empty | Numeric price bounds |
date-from |
empty | Earliest property date |
source |
empty | Import source value |
filters |
empty | Comma-separated inline filters: type, status, type-buttons, county, area, category, subtype, bedroom. Example: filters="county" |
show-filters-reset |
0 |
Display the inline-filter reset action |
agecategory |
empty | Exact property_agecategory value, for example Modern or New (Acquaint) |
ads |
1 |
Insert matching grid ads |
showagent |
0 |
Include agent details on cards |
Search and results
| Shortcode | Attributes | Purpose |
|---|---|---|
[property-search] |
layout (default basic), results (defaults to the configured results URL) |
Configurable GET search form. Visible controls come from the Search settings. |
[search-form-results] |
title, type, market, count (24), columns (configured grid size), property-card-style, pagination (yes), class, views (no), sort (no), in, hidesold (no), author, grid-type, showcount (no), fullwidth (0) |
Renders search query-string results. |
The results handler understands filters generated by the search form, including property type/status/living type, group, location, county, features, keyword, price, beds, baths, address, and order. Use the form to generate parameters rather than hand-building public URLs.
Maps
| Shortcode | Attributes/context | Purpose |
|---|---|---|
[properties-map] |
No shortcode attributes | Full property map/grid navigator. |
[property-map-simple] |
property-type, property-status |
Cached filtered property map. |
[property-get-map] |
Current property | Legacy single-property Leaflet map helper. |
[property-map] |
include-modal (yes or no) |
Single-property Leaflet map with optional modal. |
[property-map-embed] |
Current property | OpenStreetMap iframe map. |
[property-map-modal] |
Current property | Map modal wrapper. |
[property-print-satellite-map] |
Current property; print layout | Print-oriented satellite map output. |
[d2s] |
Configured map page | Draw-to-search interface. |
Single-property fields and sections
| Shortcode | Output |
|---|---|
[property-id] |
Current property post ID |
[property-title] |
Property title/address |
[property-price] |
Formatted price |
[property-price-term] |
Rental or price frequency |
[property-status] |
Display status |
[property-type] |
Property-type taxonomy value |
[property-living-type] |
More specific living type |
[property-beds] |
Bedroom count |
[property-baths] |
Bathroom count |
[property-size] |
Formatted property size |
[property-ber] |
BER display including label/image where configured |
[property-ber-only] |
BER rating value only |
[property-header] |
Combined title/status/price header |
[property-attributes] |
Main property attributes |
[property-attributes-bar-1] |
Alternate compact attributes bar |
[property-description] |
Main description and configured related sections |
[property-features] |
Property features list |
[property-accommodation] |
Accommodation details |
[property-directions] |
Directions content |
[property-floorplans] |
Floorplan media |
[property-tours] |
Embedded virtual tours and videos |
[property-print-features] |
Print-oriented feature list |
[property-print-description] |
Print-oriented description |
Images, galleries, and sliders
| Shortcode | Attributes/context | Purpose |
|---|---|---|
[property-thumbnail] |
Current property | Property thumbnail. |
[property-featured-image] |
Current property | Featured or primary property image. |
[property-images] |
Current property | Property images arranged by image count. |
[property-carousel] |
Current property | Property image carousel. |
[property-lightgallery] |
Current property | LightGallery output. |
[property-flickity] |
Current property and Flickity settings | Flickity gallery, optionally including tours. |
[property-swiper] |
Current property | Swiper gallery. |
[property-flexbin] |
Current property | Justified Flexbin image layout. |
[property-flexbin-limited] |
Current property | Limited-image Flexbin layout. |
[property-flickity-slider] |
autoplay (5000 ms; 0 disables), type (slide or fade) |
Slider of published properties with Show this property in the [property-flickity-slider] slider enabled in the property editor. |
[slider] |
ids, mobile, controls (yes), fullheight (no), fullwidth (yes), fullsize (no), zoom (no), interval (5000), height (600) |
Slider of slide posts. IDs are comma-separated; mobile can supply alternate slide IDs. |
Example:
[slider ids="101,102,103" mobile="201,202" controls="yes" fullwidth="yes" interval="6000" height="640"]
Agent, team, area, and related listings
| Shortcode | Attributes/context | Purpose |
|---|---|---|
[property-agent] |
type (default or simple) |
Matched agent or agency fallback card. |
[property-get-agent] |
Same as property-agent |
Deprecated alias. |
[property-agent-simple] |
Same as property-agent |
Deprecated alias; use type="simple". |
[property-agent-contact] |
Current property | Agent contact controls. |
[team] |
Agent profiles | Team-member list. |
[team-details] |
Current/configured agent | Team-member details. |
[team-carousel] |
Agent profiles | Team carousel. |
[latest-properties] |
Current county context | Latest three related properties. |
[areas] |
limit (1), type, status, showtype (0), showstatus (0), template ({area} {type} {status} {count}) |
Area/count links generated from published listings. |
Sharing and utilities
| Shortcode | Attributes/context | Purpose |
|---|---|---|
[share] |
Current property | Social, email, and optional print links. |
[native-share] |
Browser Web Share support | Native share button. |
[qr] |
type: accordion (default), open, or popover |
QR code for the property URL. |
[property-toolbar] |
show (default native-share, qr) |
Compact property action menu. |
[supernova-accordion-item] |
Accordion content context | Legacy reusable accordion item. |
Accounts and alerts
| Shortcode | Availability | Purpose |
|---|---|---|
[user-dashboard] |
Configured account feature | Logged-in user dashboard. |
[wppd-tiny-signup] |
Core | Compact signup form. |
[tiny-login] |
Deprecated | Alias that currently renders the signup form; use wppd-tiny-signup. |
[wppd-tiny-login] |
Core | Compact login form. |
[wppd-tiny-account] |
Core | Account-management interface. |
[property-alert-form] |
Pro | Property-alert subscription form. |
[property-alerts] |
Pro | Alias for the property-alert form. |
Integrations and contact forms
| Shortcode | Availability | Purpose |
|---|---|---|
[moneysherpa] |
Configured Moneysherpa integration | Mortgage calculator iframe, normally used on For Sale properties. |
[cf8] |
Contact-form integration | Bundled quick-contact form. |
[cf9] |
Contact-form integration | Alias for the same bundled quick-contact form. |
Block reference
| Editor block | Block name | Behavior | Status |
|---|---|---|---|
| Latest Properties | wppd/latest-properties |
Emits [latest-properties] for server-side shortcode processing |
Core |
| Recently Viewed Properties | wppd/recently-viewed-properties |
Emits an unregistered recently-viewed-properties shortcode |
Incomplete |
| Team Details | wppd/team-details |
Emits [team-details] |
Core |
| Footer Signature | wppd/footer-signature |
Emits an unregistered footer-signature shortcode |
Incomplete |
| Property Alert Form | wppd/property-alert-form |
Emits [property-alert-form] |
Pro dependency |
| Supernova Slider | supernova/supernova-slider |
Builds [slider] from block controls |
Core |
The Supernova Slider block exposes slide IDs, mobile IDs, controls, full height, full width, full-size images, zoom, autoplay interval, and height. Its block defaults differ slightly from the raw shortcode: controls default off in the block and on in [slider].
Operations and troubleshooting
Scheduling
The plugin defines 15-minute, 30-minute, three-hour, and six-hour schedules in addition to the built-in schedules. Enabled importers register source-specific cron hooks. RES CRM can schedule continuation events for additional batches. Property expiry and alert processing use separate jobs.
Saving the import schedule on the Importer Rules page reschedules every importer that is currently scheduled, so the new interval takes effect without re-saving each importer’s settings page. Avoid invoking the same importer concurrently from WP-Cron, a system scheduler, and a manual browser request.
Import safety
- Take a database backup before first-time or changed-feed imports.
- Test manual import before enabling auto-sync.
- Confirm the feed contains the full portfolio; cleanup treats missing records as intentional.
- Lock manually curated properties that the importer must not update or remove.
- Do not change
sourceorimporter_idon imported properties without a migration plan. - Review session totals and a sample of new, updated, agreed, sold, and deleted properties.
Common problems
| Symptom | Checks |
|---|---|
| Scheduled import does not run | Verify WP-Cron, module enablement, auto-sync, schedule, credentials, and next scheduled event. |
| Duplicate properties | Check repeated feed IDs, changed importer_id values, duplicate source configuration, and overlapping importers. |
| Property disappears after import | Check cleanup output, source feed completeness, property_lock, status mappings, and post status. |
| Map is blank | Confirm numeric latitude/longitude, Leaflet assets, browser console errors, and tile access. |
| Search returns unexpected results | Confirm taxonomy terms, exact meta values, search-page/result-page configuration, and URL parameters. |
| Images are missing | Confirm wppd_pics, remote image accessibility, HTTPS, proxy settings, and provider hotlink rules. |
| Alerts repeat or do not send | Check property alert flags, eligible status, cron, recipients, mail delivery, and webhook logs. |
| Property page has wrong agent | Compare the imported agent email with the agent profile email and agency fallback settings. |
Append ?dev to a property-grid URL only in a controlled environment to inspect generated query arguments. It can expose implementation details and should not be advertised on production sites.
Caches
Imports update wppd_site_cache_key, which is incorporated into frontend transient keys. If output remains stale, confirm that the import completed, then clear website/page/CDN caches. Avoid deleting all transients as a routine import step.
Updates and licensing
WP Property Drive checks the configured 4Property update service. Back up the database and plugin before updating, especially when local importer or template customizations exist. Keep credentials out of source control and rotate any credential that has been committed or exposed.
Developer reference
Bootstrap and architecture
The plugin is procedural PHP. Global functions use wppd_ or a module-specific wppd_<module>_ prefix. wp-property-drive.php defines constants, loads shared systems, conditionally loads ten importer modules, then loads admin, hooks, helpers, shortcodes, templates, sliders, and blocks.
Core entry points:
| Area | Controlling source |
|---|---|
| Plugin bootstrap and module conditions | wp-property-drive.php |
| CPTs, taxonomies, defaults, and REST filtering | includes/setup-plugin-options.php |
| Admin dispatcher | includes/admin/build-admin-page.php |
| Integration settings | includes/admin/build-integrations-page.php |
| Property query builder | includes/property-grid-functions.php |
| Property grid | shortcodes/property-grid.php |
| Search form/results | shortcodes/search-form.php, shortcodes/search-form-results.php |
| Maps | shortcodes/property-map.php |
| Property template helpers/shortcodes | templates/template-parts.php |
| Shared importer helpers | modules/functions-import.php |
| Cron registration and handlers | modules/cron.php |
| Agent alert webhooks | includes/webhook-property-import.php |
| 4Bids | modules/4bids/ |
Importer development
An importer normally lives in modules/<source>/ with autoload.php, a processor, and a property mapper. New modules should:
- Validate remote responses before marking existing listings for cleanup.
- Build an in-memory source-ID lookup rather than querying once per property.
- Respect
property_lockduring update and cleanup. - Use
wppd_import_get_term_id_cached()andwppd_import_set_object_term_cached()for taxonomy assignments. - Normalize data into the established meta and taxonomy contract.
- Record deterministic source and importer IDs.
- Make cleanup explicit and run it only after a complete successful feed.
- Update last-run/session information and the frontend cache key.
Use WordPress HTTP APIs with an explicit timeout for new remote calls. Never put API secrets in source files or diagnostic output.
Querying properties
Use wppd_build_property_query_args() for grid-compatible filtering. For custom queries, request IDs and use no_found_rows => true when pagination is unnecessary. Avoid WP_Query or taxonomy creation inside property loops. Exact indexed/meta comparisons are preferable to regular expressions over post meta.
Templates
Single-property routing and template selection live in the helper/setup layer. Template data should be obtained through wppd_get_property_*() helpers where available. These helpers return strings so custom layouts can compose output without capturing direct echoes.
Tour helpers in templates/template-parts.php are shared by content, Flickity, and Swiper: wppd_get_property_tour_urls( $property_id ) returns normalized imported/local entries, and wppd_get_tour_embed( $url, $context = 'content' ) renders one entry ('gallery' selects gallery loading and sizing). Add provider handling only to the latter; keep carousel wrappers in their owning modules.
REST and external interfaces
The property post type is available through the WordPress REST API under wp/v2/property. Public reads can be filtered by the supported property-status behavior, and properties marked wppd_exclude_from_api are omitted. Single-property responses include hide_price as 0 or 1; 1 indicates a Price on Application listing. Site authentication and capabilities govern writes.
The optional custom JSON property feed (?wppd-feed=properties) includes hide_price as 0 or 1; 1 indicates a Price on Application listing.
The agent-alert webhook sends JSON property representations to the administrator-configured URL after eligible alert processing. Treat webhook URLs as secrets, use HTTPS, validate payloads at the receiver, and make receivers idempotent.
The repository also contains standalone API and CLI scripts retained for operational or legacy workflows. Some are reachable outside normal WordPress REST authentication. Do not expose or rely on them without an environment-specific security review, network controls, and credential rotation policy.
Hooks and extension points
The plugin uses normal WordPress actions and filters for initialization, templates, queries, user registration, email, REST queries, scheduled imports, expiry, and alerts. Before adding a new global hook, prefer an existing owning function or module hook. Prefix custom plugin hooks with wppd_. Public hooks are listed in Hooks and filters.
Important scheduled hooks include the Property Drive importer, source-specific importer hooks, wppd_agent_alert_listings_cron, and wppd_expire_property_event. Hook names and schedules are implementation contracts; verify them in modules/cron.php before integrating monitoring.
Security expectations
- Check capabilities and nonces for administrative mutations.
- Sanitize untrusted input at the boundary and escape for the output context.
- Validate remote URLs and responses; use HTTPS and bounded timeouts.
- Do not expose API keys, licenses, webhook URLs, feeds, or customer IDs in logs or documentation.
- Use prepared SQL and structured
WP_Queryarguments. - Keep public AJAX, REST, CLI, and standalone API surfaces narrowly scoped and rate-limited where infrastructure permits.
Known limitations
- The Recently Viewed Properties and Footer Signature blocks output shortcode text for handlers that are not registered by this plugin version.
- The older MyHome v1 module exists in the repository but is not loaded by the current bootstrap.
- Feedcruncher is marked Beta.
- Some older importers perform per-property lookups and may be slow on large portfolios.
- Importer cleanup behavior is not uniform: missing properties may be deleted, drafted, locked, or transitioned depending on the source.
- Mapping uses Leaflet/OpenStreetMap; older references to Google Maps or Street View do not describe the primary current implementation.
- The plugin uses external and bundled frontend libraries, so claims that it has no external dependencies are inaccurate.
- This manual documents registered functionality, not unfinished plans in other files under
docs/.