WP_Plugin_Install_List_Table::get_more_details_link
Creates a 'More details' link for the plugin.
Method of the class: WP_Plugin_Install_List_Table{}
No Hooks.
Returns
String. The 'More details' link for the plugin.
Usage
// protected - for code of main (parent) or child class $result = $this->get_more_details_link( $name, $slug );
- $name(string) (required)
- The plugin's name.
- $slug(string) (required)
- The plugin's slug.
Changelog
| Since 6.5.0 | Introduced. |
WP_Plugin_Install_List_Table::get_more_details_link() WP Plugin Install List Table::get more details link code WP 6.9.1
protected function get_more_details_link( $name, $slug ) {
$url = add_query_arg(
array(
'tab' => 'plugin-information',
'plugin' => $slug,
'TB_iframe' => 'true',
'width' => '600',
'height' => '550',
),
network_admin_url( 'plugin-install.php' )
);
$more_details_link = sprintf(
'<a href="%1$s" class="more-details-link thickbox open-plugin-details-modal" aria-label="%2$s" data-title="%3$s">%4$s</a>',
esc_url( $url ),
/* translators: %s: Plugin name. */
sprintf( __( 'More information about %s' ), esc_html( $name ) ),
esc_attr( $name ),
__( 'More Details' )
);
return $more_details_link;
}