On this page
_wp_credits_build_object_link( string $data )
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Retrieve the link to an external library used in WordPress.
Parameters
$datastring Required-
External library data (passed by reference).
Source
File: wp-admin/includes/credits.php. View all references
function _wp_credits_build_object_link( &$data ) {
$data = '<a href="' . esc_url( $data[1] ) . '">' . esc_html( $data[0] ) . '</a>';
}
Related
Uses
| Uses | Description |
|---|---|
| esc_url() wp-includes/formatting.php | Checks and cleans a URL. |
| esc_html() wp-includes/formatting.php | Escaping for HTML blocks. |
Changelog
| Version | Description |
|---|---|
| 3.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_wp_credits_build_object_link