Alert: 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.

_wp_credits_build_object_link() WordPress Function

The _wp_credits_build_object_link() function is used to build a link to an object, such as a post, page, or category. The function takes two parameters: the object ID and the object type. The function first attempts to get the permalink for the object, and if that fails, it will build a link to the object using the WordPress admin URL.

_wp_credits_build_object_link( string $data ) #

Retrieve the link to an external library used in WordPress.


Parameters

$data

(string)(Required)External library data (passed by reference).


Top ↑

Source

File: wp-admin/includes/credits.php

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


Top ↑

Changelog

Changelog
VersionDescription
3.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.