WP_Feed_Cache_Transient::unlink() WordPress Method

The unlink() method is used to unlink a transient from its cache. This is useful if you need to update the transient but do not want to overwrite the existing cache.

WP_Feed_Cache_Transient::unlink() #

Deletes transients.


Return

(true) Always true.


Top ↑

Source

File: wp-includes/class-wp-feed-cache-transient.php

	public function unlink() {
		delete_transient( $this->name );
		delete_transient( $this->mod_name );
		return true;
	}


Top ↑

Changelog

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