Returns:
-
String
The already stored value, or the value that was just stored.
Stores or retrieves a data item against a key which is bulk-stored against this a bucket associated with this post type using the WordPress transients API, via the WOOF_PostType::cache_data method. This function allows you to greatly enhance the performance of operations that loop over a lot of post objects and then perform heavy operations on each of them, by progressively caching the results of those operations.
Parameters:
-
The slug to store data under (should generally be a post slug).
-
The name of the data item to store.
-
String $value = null
The value to store. If this is not provided, this method will retrieve the value stored in the bucket (if any).