Class Dependency
Methods summary
public
|
|
public
|
|
public
boolean
|
#
dependenciesSatisfied(
Determines if product's dependencies are met |
public static
mixed
|
#
extraHeaders( $headers )
Registers HJI-related headers with WP-core get_file_data() parser This data can be accessed via core getters of plugin and theme data. |
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
#
setDependencyUpgradeNotice( $upgrade )
Adds upgrade_notice property with upgrade dependencies info, to the upgrade data. |
public
|
#
inPluginUpdateMessage( $plugin_data, $r )
Renders dependencies message related to the available update The message is rendered inside the table row for each respective plugin inside Plugins Dashboard. |
public
array
|
#
setPluginsRowMeta( $plugin_meta, $plugin_file, $plugin_data, $status )
Renders required dependencies meta data within plugin's data row in the Plugins table Hook plugin_row_meta implementation. |
public
|
|
public
|
#
checkDependenciesOnActivation( $pluginFile, $network_wide )
Checks dependencies on plugin activation, if not satisfied - sets temp transient to trigger deactivation upon page reload. |
public static
|
#
undo_activation_actions( string $plugin, boolean $network_wide )
Undo any activation actions which may have run for blocked activation plugins |
public
|
#
onActivationNotice( )
Add activation failure notices to the ::$notices due to dependencies being not satisfied. |
public
|
#
themeDependenciesNotice( array $deps, $productName )
Adds theme dependency notice to the ::$notices container. |
protected static
null|string
|
|
protected static
|
|
protected static
string
|
|
public
array
|
#
resolveDependencies( $dependenciesArray )
Returns array of items sorted in the order satisfying dependencies |