wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_link › WordPress Function

Since2.0.0
已弃用2.1.0
get_link ( $bookmark_id, $output = OBJECT, $filter = 'raw' )
参数: (3)
  • (int) $bookmark_id ID of link
    Required: Yes
  • (string) $output Optional. Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT.
    Required: No
    默认: OBJECT
  • (string) $filter Optional. How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'. Default 'raw'.
    Required: No
    默认: 'raw'
查看:
返回:
  • (object|array) Bookmark object or array, depending on the type specified by `$output`.
定义在:
文档:

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);
}