get_bookmarks WordPress Filter Hook

The get_bookmarks hook is used to retrieve the bookmarks for a given user. This hook is called by the get_bookmarks() function.

apply_filters( 'get_bookmarks', array $bookmarks, array $parsed_args ) #

Filters the returned list of bookmarks.


Description

The first time the hook is evaluated in this file, it returns the cached bookmarks list. The second evaluation returns a cached bookmarks list if the link category is passed but does not exist. The third evaluation returns the full cached results.

Top ↑

See also


Top ↑

Parameters

$bookmarks

(array)List of the cached bookmarks.

$parsed_args

(array)An array of bookmark query arguments.


Top ↑

Source

File: wp-includes/bookmark.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.