WP_Plugins_List_Table::get_view_details_link( string $name, string $slug ): string

In this article

Returns a ‘View details’ link for the plugin.

Parameters

$namestringrequired
The plugin’s name.
$slugstringrequired
The plugin’s slug.

Return

string A ‘View details’ link for the plugin.

Source

protected function get_view_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' )
	);

	$name_attr = esc_attr( $name );
	return sprintf(
		"<a href='%s' class='thickbox open-plugin-details-modal' aria-label='%s' data-title='%s'>%s</a>",
		esc_url( $url ),
		/* translators: %s: Plugin name. */
		sprintf( __( 'More information about %s' ), $name_attr ),
		$name_attr,
		esc_html( $name )
	);
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.