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

Packages

  • EPL
    • Admin
      • Actions
      • Classes
        • ContactsTable
        • 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
    • 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_METABOX

Class EPL_METABOX

EPL_METABOX class

Can also be used by extensions to handle all the metabox functionality it adds metabox wrapper & renders metabox fields and finally save it on save_post hook the constructor of the class accepts one or more array of metabox to be rendered the structure of the metabox array should be similar to make it work

Package: EPL\Classes\MetaboxesCustomFields
Copyright: Copyright (c) 2019, Merv Barrett
License: GNU Public License
Since: 2.0
Located at lib/includes/class-epl-metabox.php

Methods summary

public
# __construct( mixed $epl_meta_boxes, string $prefix = 'epl_', string $text_domain = 'easy-property-listings' )

Constructor

Constructor

Register a mea box.

Parameters

$epl_meta_boxes
The name(s) of the meta box.
$prefix
Prefix of meta box.
$text_domain
Text domain name.
public
# add_action( string $action, string $function, integer $priority = 10, integer $accepted_args = 1 )

Add Action

Add Action

Helper function to add add_action WordPress filters.

Parameters

$action
Name of the action.
$function
Function to hook that will run on action.
$priority
Order in which to execute the function, relation to other functions hooked to this action.
$accepted_args
The number of arguments the function accepts.
public
# add_filter( string $action, string $function, integer $priority = 10, integer $accepted_args = 1 )

Add Filter

Add Filter

Create add_filter WordPress filter.

Parameters

$action
Name of the action to hook to, e.g 'init'.
$function
Function to hook that will run on @action.
$priority
Order in which to execute the function, relation to other function hooked to this action.
$accepted_args
The number of arguements the function accepts.

See

http://codex.wordpress.org/Function_Reference/add_filter
public
# add_meta_boxes( )

Add metaboxes

Add metaboxes

See how to register custom field metaboxes to listings here.

Link

https://codex.easypropertylistings.com.au/article/127-epllistingmetaboxes-filter
public
# add_meta_box( string $id = '', string $label = '', string $func = 'inner_meta_box', array $post_type = array(), string $context = 'normal', string $priority = 'default', array $args = null )

Class wrapper for WordPress function add_meta_box

Class wrapper for WordPress function add_meta_box

Parameters

$id
Meta box ID (used in the 'id' attribute for the meta box).
$label
Title of the meta box.
$func

Function that fills the box with the desired content. The function should echo its output.

$post_type
Post type name.
$context

Optional. The context within the screen where the boxes should display. Available contexts vary from screen to screen. Post edit screen contexts include 'normal', 'side', and 'advanced'. Comments screen contexts include 'normal' and 'side'. Menus meta boxes (accordion sections) all use the 'side' context. Global default is 'advanced'.

$priority

Optional. The priority within the context where the boxes should show ('high', 'low'). Default 'default'.

$args

Optional. Data that should be set as the $args property of the box array (which is the second parameter passed to your callback). Default null.

See

https://codex.wordpress.org/Function_Reference/add_meta_box
public
# inner_meta_box( array $post, array $args )

Used to render the metabox fields

Used to render the metabox fields

Parameters

$post
Post object.
$args
Array of options.

Since

3.4.19 Updated to new html structure for fields using html lists
public integer
# save_meta_box( integer $post_ID )

Callback function hooked on WordPress save_post hook used to save all the meta fields

Callback function hooked on WordPress save_post hook used to save all the meta fields

Parameters

$post_ID
The post ID.

Returns

integer

Since

3.4.17 Fixed issue : empty values not getting saved for decimals & numbers

See

https://codex.wordpress.org/Plugin_API/Action_Reference/save_post

Properties summary

protected array $epl_meta_boxes

Holds the user submitted metabox array

Holds the user submitted metabox array

#
protected array $prefix

Prefix used in nonces and other places to make them unique

Prefix used in nonces and other places to make them unique

Default is epl_

#
protected array $text_domain

Translation domain used to translate string

Translation domain used to translate string

Default is epl

#
Easy Property Listings 3.5.14 Code Reference API documentation generated by ApiGen