Title: get_bookmarks
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘get_bookmarks’, array $bookmarks, array $parsed_args )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#wp--skip-link--target)

Filters the returned list of bookmarks.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#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.

### 󠀁[See also](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#see-also)󠁿

 * [get_bookmarks()](https://developer.wordpress.org/reference/functions/get_bookmarks/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#parameters)󠁿

 `$bookmarks`array

List of the cached bookmarks.

`$parsed_args`array

An array of bookmark query arguments.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'get_bookmarks', $bookmarks, $parsed_args );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/bookmark.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/bookmark.php#L175)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/bookmark.php#L175-L175)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#related)󠁿

| Used by | Description | 
| [get_bookmarks()](https://developer.wordpress.org/reference/functions/get_bookmarks/)`wp-includes/bookmark.php` |

Retrieves the list of bookmarks.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/get_bookmarks/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.1.0](https://developer.wordpress.org/reference/since/2.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fget_bookmarks%2F)
before being able to contribute a note or feedback.