public function is_remote_plugin_available($component, $version, $exactmatch) {

        $info = $this->get_remote_plugin_info($component, $version, $exactmatch);

        if (empty($info)) {
            // There is no available plugin of that name.
            return false;
        }

        if (empty($info->version)) {
            // Plugin is known, but no suitable version was found.
            return false;
        }

        return true;
    }
public function is_remote_plugin_available($component, $version, $exactmatch) {

        $info = $this->get_remote_plugin_info($component, $version, $exactmatch);

        if (empty($info)) {
            // There is no available plugin of that name.
            return false;
        }

        if (empty($info->version)) {
            // Plugin is known, but no suitable version was found.
            return false;
        }

        return true;
    }
public function is_remote_plugin_available ( $ component , $ version , $ exactmatch ) { $ info = $ this -> get_remote_plugin_info ( $ component , $ version , $ exactmatch ) ; if ( empty ( $ info ) ) { // There is no available plugin of that name. return false ; } if ( empty ( $ info -> version ) ) { // Plugin is known, but no suitable version was found. return false ; } return true ; }
Is the given plugin version available in the plugins directory?

See {@link self::get_remote_plugin_info()} for the full explanation of how the $version
parameter is interpretted.

@param string $component plugin frankenstyle name
@param string|int $version ANY_VERSION or the version number
@param bool $exactmatch false if "given version or higher" is requested
@return boolean
Is the given plugin version available in the plugins directory?