get_link

函数


get_link ( $bookmark_id, $output = OBJECT, $filter = 'raw' )
参数
  • (int)
    $bookmark_id
    ID of link
    Required:
  • (string)
    $output
    Optional. Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT.
    Required:
    Default: OBJECT
  • (string)
    $filter
    Optional. How to filter the link for output. Accepts ‘raw’, ‘edit’, ‘attribute’, ‘js’, ‘db’, or ‘display’. Default ‘raw’.
    Required:
    Default: ‘raw’
返回值
  • (object|array) Bookmark object or array, depending on the type specified by `$output`.
相关
  • get_bookmark()
定义位置
  • wp-includes/deprecated.php
    , line 2021
引入
2.0.0
弃用
2.1.0

Retrieves bookmark data based on ID.

function get_link( $bookmark_id, $output = OBJECT, $filter = 'raw' ) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmark()' );
	return get_bookmark($bookmark_id, $output, $filter);
}