WPGlobus
  • Package
  • Class

Packages

  • WPGlobus
    • ACF
    • Admin
      • Customizer
      • HelpDesk
      • Options
        • Field
    • All-in-One-SEO
    • Compat
    • MailChimp
    • RevSlider
    • The-Events-Calendar
    • Yoast

Classes

  • WPGlobus_About
  • WPGlobus_Addons
  • WPGlobus_Admin_Page
  • WPGlobus_Clean
  • WPGlobus_Plugin_Install

Class WPGlobus_Plugin_Install

Class WPGlobus_Plugin_Install

Package: WPGlobus\Admin
Located at includes/admin/class-wpglobus-plugin-install.php

Methods summary

public static
# controller( )

Controller.

Controller.

protected static
# _setup_premium_add_ons( )

List of the premium WPGlobus extensions.

List of the premium WPGlobus extensions.

public static integer
# sort_callback( array $a, array $b )

Callback for sorting premium add-ons.

Callback for sorting premium add-ons.

Parameters

$a
First.
$b
Second.

Returns

integer
public static stdClass|WP_Error
# filter__plugins_api_result( stdClass|WP_Error $res, string $action, stdClass $args )

Filter api results

Filter api results

Parameters

$res
Response object or WP_Error.
$action
The type of information being requested from the Plugin Install API.
$args
Plugin API arguments.

Returns

stdClass|WP_Error
protected static array[]
# _get_all_product_info_from_server( )

Call the WPGlobus server to get information about all premium plugins.

Call the WPGlobus server to get information about all premium plugins.

Returns

array[]
protected static stdClass
# _plugin_info_template( )

Template for plugin info.

Template for plugin info.

Returns

stdClass
public static
# enqueue_scripts( string $hook_page )

Enqueue admin JS scripts.

Enqueue admin JS scripts.

Parameters

$hook_page
The current admin page.

Constants summary

string FAKE_VERSION

Fake version for paid plugins to prevent the "Update Now" button from appearing.

Fake version for paid plugins to prevent the "Update Now" button from appearing.

# '999'
integer FAKE_ACTIVE_INSTALLS

Fake active installs for paid plugins.

Fake active installs for paid plugins.

# 0

Properties summary

protected static string $fake_compatible_with

Fake "Compatible with your version of WordPress" for paid plugins.

Fake "Compatible with your version of WordPress" for paid plugins.

# ''
protected static array $plugin_card

Array of plugin cards.

Array of plugin cards.

# array()
protected static array $paid_plugins

Array of paid plugins data.

Array of paid plugins data.

# array()
protected static array $free_plugins

Array of free plugins data.

Array of free plugins data.

# array()
WPGlobus API documentation generated by ApiGen