Easy Property Listings 3.4.40 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
      • 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
      • 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_SL_Plugin_Updater

Class EPL_SL_Plugin_Updater

Allows plugins to use their own update API.

Package: EPL\Classes\Updater
Copyright: Copyright (c) 2020, Merv Barrett
License: GNU Public License
Author: Pippin Williamson
Version: 1.6.6
Since: 1.0
Located at lib/includes/class-epl-sl-plugin-updater.php

Methods summary

public
# __construct( string $_api_url, string $_plugin_file, array $_api_data = null )

Class constructor.

Class constructor.

Parameters

$_api_url
The URL pointing to the custom API endpoint.
$_plugin_file
Path to the plugin file.
$_api_data
Optional data to send with API calls.

Uses

plugin_basename()
hook()
public
# init( )

Set up WordPress filters to hook into WP's update process.

Set up WordPress filters to hook into WP's update process.

Uses

add_filter()
public array
# check_update( array $_transient_data )

Check for Updates at the defined API endpoint and modify the update array.

Check for Updates at the defined API endpoint and modify the update array.

This function dives into the update API just when WordPress creates its update array, then adds a custom API call and injects the custom plugin data retrieved from the API. It is reassembled from parts of the native WordPress plugin update code. See wp-includes/update.php line 121 for the original wp_update_plugins() function.

Parameters

$_transient_data
Update array build by WordPress.

Returns

array
Modified update array with custom plugin data.

Uses

api_request()
public
# show_update_notification( string $file, array $plugin )

Show update nofication row -- needed for multisite subsites, because WP won't tell you otherwise!

Show update nofication row -- needed for multisite subsites, because WP won't tell you otherwise!

Parameters

$file
PLugin file.
$plugin
Plugin name.
public object
# plugins_api_filter( mixed $_data, string $_action = '', object $_args = null )

Updates information on the "View version x.x details" page with custom data.

Updates information on the "View version x.x details" page with custom data.

Parameters

$_data
Data.
$_action
Action name.
$_args
Arguments.

Returns

object
$_data

Uses

api_request()
public array
# http_request_args( array $args, string $url )

Disable SSL verification in order to prevent download update failures.

Disable SSL verification in order to prevent download update failures.

Parameters

$args
Arguments.
$url
URL.

Returns

array
$array
public
# show_changelog( )

Display change log

Display change log

public boolean
# get_cached_version_info( string $cache_key = '' )

Get cached version info

Get cached version info

Parameters

$cache_key
The cache key.

Returns

boolean
public
# set_version_info_cache( string $value = '', string $cache_key = '' )

Set version info cache

Set version info cache

Parameters

$value
The value.
$cache_key
The cache key.
Easy Property Listings 3.4.40 Code Reference API documentation generated by ApiGen