W3cubDocs

/WordPress

_wp_credits_build_object_link( string $data )

Retrieves the link to an external library used in WordPress.

Parameters

$datastringrequired
External library data (passed by reference).

Source

function _wp_credits_build_object_link( &$data ) {
	$data = '<a href="' . esc_url( $data[1] ) . '">' . esc_html( $data[0] ) . '</a>';
}

Changelog

Version Description
3.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_wp_credits_build_object_link