首页 WordPress函数大全 get_link()

get_link()

2020-05-01 / 2766阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

Warning: This function has been deprecated. Use get_bookmark() instead.

get_link( int $bookmark_id, string $output = OBJECT, string $filter = 'raw' )

Retrieves bookmark data based>

Contents

  • Description
    • See also
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
  • User Contributed Notes

描述

See also See also

  • get_bookmark()

Top ↑

参数

$bookmark_id

(int)
(Required)
ID of link

$output

(string)
(Optional)
Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A.

Default value: OBJECT

$filter

(string)
(Optional)
How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'.

Default value: 'raw'

返回

(object|array) Bookmark object or array, depending on the type specified by $output.

大家谈论
    我的见解