Docs: Improve documentation for install_plugin_install_status()
.
Props clarionwpdeveloper, sudar. Fixes #36912. git-svn-id: https://develop.svn.wordpress.org/trunk@38805 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b9894d3295
commit
9639758d1c
@ -348,9 +348,16 @@ function display_plugins_table() {
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param array|object $api
|
||||
* @param bool $loop
|
||||
* @return type
|
||||
* @param array|object $api Data about the plugin retrieved from the API.
|
||||
* @param bool $loop Optional. Disable further loops. Default false.
|
||||
* @return array {
|
||||
* Plugin installation status data.
|
||||
*
|
||||
* @type string $status Status of a plugin. Could be one of 'install', 'update_available', 'latest_installed' or 'newer_installed'.
|
||||
* @type string $url Plugin installation URL.
|
||||
* @type string $version The most recent version of the plugin.
|
||||
* @type string $file Plugin filename relative to the plugins directory.
|
||||
* }
|
||||
*/
|
||||
function install_plugin_install_status($api, $loop = false) {
|
||||
// This function is called recursively, $loop prevents further loops.
|
||||
|
Loading…
Reference in New Issue
Block a user