WooCommerce Code Reference

PluginsInstaller
in package

Class PluginsInstaller

Table of Contents

cache_results()  : mixed
Display the results of installation and activation on the page.
init()  : mixed
Constructor
possibly_install_activate_plugins()  : mixed
Check if an install or activation is being requested via URL query.
redirect_to_referer()  : mixed
Redirect back to the referring page if one exists.

Methods

cache_results()

Display the results of installation and activation on the page.

public static cache_results(string $plugins, array<string|int, mixed> $install_result, array<string|int, mixed> $activate_result) : mixed
Parameters
$plugins : string

Comma separated list of plugins.

$install_result : array<string|int, mixed>

Result of installation.

$activate_result : array<string|int, mixed>

Result of activation.

Return values
mixed

possibly_install_activate_plugins()

Check if an install or activation is being requested via URL query.

public static possibly_install_activate_plugins() : mixed
Return values
mixed

redirect_to_referer()

Redirect back to the referring page if one exists.

public static redirect_to_referer() : mixed
Return values
mixed