Easy Property Listings 3.5.28 Code Reference
  • Package
  • Class
  • Tree
  • Todo
  • Hook Reference

Packages

  • EPL
    • Admin
      • Actions
      • Classes
        • ContactsTable
        • EPL
          • Admin
            • Images
        • ReportsGraph
        • Welcome
      • Contacts
      • ContactsActions
      • ContactsFunctions
      • Elements
      • Functions
      • Help
      • HelpSingle
      • Menus
      • MenusAddons
      • MenusExtensions
      • MenusLicenses
      • Plugins
      • Reports
      • ReportsGraphing
      • User
    • Assets
      • ScriptsStyles
      • SVG
    • Classes
      • AuthorLoader
      • AuthorMeta
      • Contact
      • Cron
      • CustomPostType
      • Forms
      • License
      • ListingAdvanced
      • ListingElements
      • MetaboxesCustomFields
      • Pagination
      • PropertyMeta
      • RenderFields
      • RestAPI
      • Search
      • Session
      • Updater
    • Compatibility
      • Extensions
      • Functions
      • Shortcodes
    • Functions
      • Actions
      • ConditionalTags
      • ErrorTracking
      • Formatting
      • Front
      • Global
      • Install
      • Pagination
      • Settings
      • Templates
    • Hooks
      • EnergyCertificate
      • ExternalLinks
      • FloorPlan
      • Map
      • ReadMore
      • WebLink
    • Includes
      • UserMeta
    • Meta
      • InitCustomFields
      • Meta
    • PostTypes
      • Business
      • Commercial
      • CommercialLand
      • Contact
      • Functions
      • Land
      • Property
      • Rental
      • Rural
    • Shortcode
      • CommercialListingSearch
      • ContactForm
      • Listing
      • ListingAdvanced
      • ListingAuction
      • ListingCategory
      • ListingFeature
      • ListingLocation
      • ListingMetaDoc
      • ListingOpen
      • ListingResults
      • ListingSearch
      • Map
    • Taxonomy
      • BusinessCategories
      • ContactTag
      • Features
      • Location
    • Templates
      • Themes
        • iThemes
        • iThemesBuilder
    • Widget
      • Admin
        • Dashboard
      • Classes
        • Author
        • ContactCapture
        • Gallery
        • Listing
        • Search
      • Functions
  • None
  • WordPress
    • Session

Classes

  • EPL_Rest_API

Class EPL_Rest_API

EPL_Rest_API Class

Package: EPL\Classes\RestAPI
Copyright: Copyright (c) 2024, Merv Barrett
License: GNU Public License
Since: 3.5.8
Located at lib/includes/class-epl-rest-api.php

Methods summary

public static EPL_Rest_API
# instance( )

Insures that only one instance of EPL_Rest_API exists in memory.

Insures that only one instance of EPL_Rest_API exists in memory.

Returns

EPL_Rest_API
instance

Since

3.5.8
public
# hooks( )

Add hooks to Rest API.

Add hooks to Rest API.

Since

3.5.8
public WP_REST_Response
# meta_to_rest_api( array $response, array $post, array $request )

Add EPL Meta data to Rest API.

Add EPL Meta data to Rest API.

Parameters

$response
The response.
$post
The post.
$request
The request.

Returns

WP_REST_Response
$response

Since

3.5.8
3.5.10 Fix error when group fields are empty.
3.5.27 Hidden and internal fields are only returned to users who can edit the listing.
3.5.28 Users who cannot edit the listing only receive public fields the listing displays.
public array
# get_public_meta_keys( WP_Post $post )

Meta keys returned to users who cannot edit the listing.

Meta keys returned to users who cannot edit the listing.

Only fields the listing displays on the front end are allowed. Any other field, including fields added by extensions, is withheld unless added with the epl_rest_api_public_meta_keys filter. Fields are then removed when the listing or the site settings hide them.

Parameters

$post
The post.

Returns

array
Meta keys.

Since

3.5.28
Easy Property Listings 3.5.28 Code Reference API documentation generated by ApiGen