• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / get_link() – Retrieves bookmark data based on ID.

You appear to be a bot. Output may be restricted

Description

Retrieves bookmark data based on ID.

Usage

$object|array = get_link( $bookmark_id, $output, $filter );

Parameters

$bookmark_id
( int ) required – ID of link
$output
( string ) optional default: OBJECT – Optional. Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT.
$filter
( string ) optional default: raw – Optional. How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'. Default 'raw'.

Returns

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

Source

File name: wordpress/wp-includes/deprecated.php
Lines:

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

 View on GitHub View on Trac

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: get_link
Plugin ref: WordPress
Version: 5.6
Sourcefile: wp-includes/deprecated.php
File ref: wp-includes/deprecated.php
Deprecated?: No
API Letters: G,L

Footer

WP-a2z
WordPress core a2z
WordPress core only
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  core.wp-a2z.org
© Copyright WP-a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites