WPDev.one
Core Function
View Source on Trac ↗

wp_get_plugin_action_button()

wp_get_plugin_action_button( mixed $name, mixed $data, mixed $compatible_php, mixed $compatible_wp )

Gets the markup for the plugin install action button.

Parameters 4 required

Name / Type Description
$name
string

Plugin name.

Required
mixed

(array | object) $data { An array or object of plugin data. Can be retrieved from the API.

Required
$compatible_php
bool

The result of a PHP compatibility check.

Required
$compatible_wp
bool

The result of a WP compatibility check.

Required

Return Value

(string)
The markup for the dependency row button. An empty string if the user does not have capabilities.

Function Information

Since Version
6.5.0
Source File
wp-admin/includes/plugin-install.php
Advertisement