Title: _wp_credits_build_object_link
Published: April 25, 2014
Last modified: May 20, 2026

---

# _wp_credits_build_object_link( string $data )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/_wp_credits_build_object_link/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/_wp_credits_build_object_link/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/_wp_credits_build_object_link/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/_wp_credits_build_object_link/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/_wp_credits_build_object_link/?output_format=md#wp--skip-link--target)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Retrieves the link to an external library used in WordPress.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/_wp_credits_build_object_link/?output_format=md#parameters)󠁿

 `$data`stringrequired

External library data (passed by reference).

## 󠀁[Source](https://developer.wordpress.org/reference/functions/_wp_credits_build_object_link/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/credits.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/credits.php#L82)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/credits.php#L82-L84)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/_wp_credits_build_object_link/?output_format=md#related)󠁿

| Uses | Description | 
| [esc_url()](https://developer.wordpress.org/reference/functions/esc_url/)`wp-includes/formatting.php` |

Checks and cleans a URL.

  | 
| [esc_html()](https://developer.wordpress.org/reference/functions/esc_html/)`wp-includes/formatting.php` |

Escaping for HTML blocks.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/_wp_credits_build_object_link/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.2.0](https://developer.wordpress.org/reference/since/3.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2F_wp_credits_build_object_link%2F)
before being able to contribute a note or feedback.