You appear to be a bot. Output may be restricted
Description
Creates a link if the passed plugin is deemend a directly-installable plugin.
Usage
$string = WPSEO_Admin_Utils::get_install_link( $plugin );
Parameters
- $plugin
- ( array ) required – The plugin to create the link for.
Returns
string The link to the plugin install. Returns the title if the plugin is deemed a Premium product.
Source
File name: wordpress-seo/admin/class-admin-utils.php
Lines:
1 to 13 of 13
public static function get_install_link( $plugin ) { $install_url = self::get_install_url( $plugin['slug'] ); if ( $install_url === '' || ( isset( $plugin['premium'] ) && $plugin['premium'] === true ) ) { return $plugin['title']; } return sprintf( '<a href="%s">%s</a>', $install_url, $plugin['title'] ); }