首页 WordPress函数大全 install_plugin_install_status()

install_plugin_install_status()

2020-05-02 / 5579阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

install_plugin_install_status( array|object $api, bool $loop = false )

Determine the status we can perform>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

参数

$api

(array|object)
(Required)
Data about the plugin retrieved from the API.

$loop

(bool)
(Optional)
Disable further loops.

Default value: false

返回

(array) Plugin installation status data.

  • 'status'
    (string) Status of a plugin. Could be one of 'install', 'update_available', 'latest_installed' or 'newer_installed'.
  • 'url'
    (string) Plugin installation URL.
  • 'version'
    (string) The most recent version of the plugin.
  • 'file'
    (string) Plugin filename relative to the plugins directory.
大家谈论
    我的见解