Overview

Packages

  • ACF
  • Automation
    • Actions
    • Activation
    • LeadProfile
    • Menus
    • Queries
    • Rules
    • Triggers
  • CTA
    • Activation
    • AJAXListeners
    • Cloning
    • Core
    • Display
    • EditPage
    • Enqueues
    • GPLSettings
    • LeadsProfile
    • Loading
    • Menus
    • Notices
    • PlacementMetabox
    • PostType
    • Templates
    • Tracking
    • Variations
    • YOAST
  • InboundPro
    • Activation
    • AdminAJAX
    • AutoLoading
    • Cron
    • DataInterface
    • FieldMapping
    • Funnels
    • InboundNowAPI
    • Installer
    • LeadStatuses
    • Menus
    • Notifications
    • Ouath
    • Reports
    • Settings
    • Tracking
    • Translations
    • Updates
  • LandingPages
    • Activation
    • DataInterfaces
    • Management
    • Menus
    • NeedsAttention
    • Notices
    • Sidebars
    • Templates
    • Tracking
    • Variations
    • WelcomeScreen
    • Widgets
  • Leads
    • Activation
    • Akismet
    • BranchControl
    • BulkActions
    • Dashboard
    • Management
    • Notifications
    • Settings
    • Tracking
    • UserProfile
    • WPLogin
  • Mailer
    • Activation
    • Admin
    • ClickTracking
    • DataInterface
    • InboundForms
    • Leads
    • Management
    • Notifications
    • Scheduling
    • Sending
    • Settings
    • ShortcodesAndTokens
    • SparkPost
    • Templates
    • Unsubscribes
    • Variations
    • YoastSEO
  • None
  • Shared
    • APIs
    • CPT
    • DatabaseRoutines
    • DebugTricks
    • DoubleOptin
    • EventManagement
    • FieldMapping
    • InboundForms
    • LeadSorage
    • MarketingButton
    • Menus
    • Notifications
    • Shortcodes
    • ShortcodesAndTokens
    • StandAloneLicensing
    • Tracking
    • VisualEditor
  • xDepreciated

Classes

  • Inbound_Pro_Automatic_Updates
  • Inbound_Updater
  • Overview
  • Package
  • Class

Class Inbound_Updater

Class for managing updates to Inbound Pro plugin Inbound plugin API

Package: InboundPro\Updates
Located at classes/admin/class.updater.php
Methods summary
public
# __construct( string $_api_url, string $_plugin_path, $_plugin_file, $_current_version )

Class constructor.

Class constructor.

Parameters

$_api_url
The URL pointing to the custom API endpoint.
$_plugin_path
$_plugin_file Path to the plugin file.
$_plugin_file
$_current_version

Uses

plugin_basename()
public static
# load_hooks( )

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()
add_action()
public static 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

Inbound_Updater::api_request()
public static
# api_request( )

API Call -

API Call -

Used by

Inbound_Updater::check_update()
Inbound_Updater::plugins_api_filter()
public static
# show_update_notification( string $file, array $plugin )

show update nofication row -- because WP won't tell you otherwise!

show update nofication row -- because WP won't tell you otherwise!

Parameters

$file
$plugin
public static 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
$_action
$_args

Returns

object
$_data

Uses

Inbound_Updater::api_request()
public static
# run_update( )

Show changelog

Show changelog

public static
# ajax_throw_success( )

thow successful json message if plugin update succeeded

thow successful json message if plugin update succeeded

public static
# ajax_throw_fail( )

thow fail json message if plugin update succeeded

thow fail json message if plugin update succeeded

public static
# delete_plugin_folder( $dirPath )

deletes plugin folder

deletes plugin folder

public static
# install_new_plugin( )

Install new plugin

Install new plugin

public static boolean
# allow_download_url( $args, $host,…, $url,… )

Permit non standard zip files to be used in automatic update

Permit non standard zip files to be used in automatic update

Parameters

$args
$host,…
$url,…

Returns

boolean
Properties summary
public static $api_key
#
public static $domain
#
public static $api_url
#
public static $path
#
public static $file
#
public static $name
#
public static $slug
#
public static $response
#
public static $info
#
public static $current_version
#
Inbound Pro Plugin - PHP Codex API documentation generated by ApiGen