GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Public Member Functions | |
check_for_product_updates ( $transient_data, $skip_cache=false) | |
Checks for product updates and modifies the 'update_plugins' transient. More... | |
disable_legacy_edd_updater () | |
Disables EDD updater that's included with GravityKit products. More... | |
display_product_information ( $result, $action, $args) | |
Returns product information for display on the Plugins page. More... | |
format_product_data ( $product) | |
Returns a product object formatted according to what WP expects in order to display changelog/store plugin update data. More... | |
init () | |
Initializes the class. More... | |
Static Public Member Functions | |
static | get_instance () |
Returns class instance. More... | |
Static Private Attributes | |
static | $_instance |
check_for_product_updates | ( | $transient_data, | |
$skip_cache = false |
|||
) |
Checks for product updates and modifies the 'update_plugins' transient.
object | $transient_data | |
bool | $skip_cache | (optional) Whether to skip cache when getting products data. Default: false. |
Definition at line 110 of file EDD.php.
References EDD\format_product_data(), Arr\get(), and ProductManager\get_instance().
disable_legacy_edd_updater | ( | ) |
display_product_information | ( | $result, | |
$action, | |||
$args | |||
) |
Returns product information for display on the Plugins page.
This short-circuits the WordPress.org API request by returning product information from the EDD API that we store in the database.
false | object | array | $result | Product information. |
string | $action | Plugin Installation API action. |
object | $args | Request arguments. |
Definition at line 218 of file EDD.php.
References $args, EDD\format_product_data(), Arr\get(), and ProductManager\get_instance().
format_product_data | ( | $product | ) |
Returns a product object formatted according to what WP expects in order to display changelog/store plugin update data.
array | $product | Product data. |
Definition at line 164 of file EDD.php.
References Arr\get(), and LicenseManager\get_instance().
Referenced by EDD\check_for_product_updates(), and EDD\display_product_information().
|
static |
Returns class instance.
Definition at line 30 of file EDD.php.
Referenced by Framework\init(), and ProductManager\update_product().