get_link


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

Parameters:
  • (int) bookmark_id ID of link
  • (string) output Optional. Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT.
  • (string) filter Optional. How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'. Default 'raw'.
See:
Returns:
  • (object|array) Bookmark object or array, depending on the type specified by `$output`.
Defined at:

Description

Retrieves bookmark data based on ID.

Related Functions

get_links, edit_link, get_day_link, get_tag_link, wp_get_links

Top Google Results

User discussions

wpseek mobile