clean_bookmark_cache() WordPress Function

The clean_bookmark_cache() function is used to clear the cached data for bookmarks. This function is useful for when you need to update the cached data for bookmarks.

clean_bookmark_cache( int $bookmark_id ) #

Deletes the bookmark cache.


Parameters

$bookmark_id

(int)(Required)Bookmark ID.


Top ↑

Source

File: wp-includes/bookmark.php

function clean_bookmark_cache( $bookmark_id ) {
	wp_cache_delete( $bookmark_id, 'bookmark' );
	wp_cache_delete( 'get_bookmarks', 'bookmark' );
	clean_object_term_cache( $bookmark_id, 'link' );
}


Top ↑

Changelog

Changelog
VersionDescription
2.7.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.