wp_get_plugin_action_button
wp_get_plugin_action_button ( $name, $data, $compatible_php, $compatible_wp )
Parameters:- (string) name Plugin name.
- (array|object) data { An array or object of plugin data. Can be retrieved from the API. @type string $slug The plugin slug. @type string[] $requires_plugins An array of plugin dependency slugs. @type string $version The plugin's version string. Used when getting the install status. }
- (bool) compatible_php The result of a PHP compatibility check.
- (bool) compatible_wp The result of a WP compatibility check.
Returns:- (string) The markup for the dependency row button. An empty string if the user does not have capabilities.
Defined at: - Introduced in WordPress: 6.5.0
- Deprecated in WordPress: —
Description
Gets the markup for the plugin install action button.