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

In this article

Returns a ‘View details’ like link for a dependency.

Parameters

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

Return

string A ‘View details’ link for the dependency.

Source

protected function get_dependency_view_details_link( $name, $slug ) {
	$dependency_data = WP_Plugin_Dependencies::get_dependency_data( $slug );

	if ( false === $dependency_data
		|| $name === $slug
		|| $name !== $dependency_data['name']
		|| empty( $dependency_data['version'] )
	) {
		return $name;
	}

	return $this->get_view_details_link( $name, $slug );
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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