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’
-
(int)
- 返回值
-
- (object|array) Bookmark object or array, depending on the type specified by `$output`.
- 相关
-
- get_bookmark()
- 定义位置
-
-
wp-includes/deprecated.php
, line 2021
-
wp-includes/deprecated.php
- 引入
- 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); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。