So, after one minute of more thinking, there is an easy solution, although i did not try it myself:
$transient="_transient_timeout_" . $_your_transient_name;
$transient_timeout = get_option ( $transient );
you should be ready to go with this.
Another Way throught the database would be:
$transient="_transient_timeout_" . $_your_transient_name;
global $wpdb;
$query = 'SELECT option_value FROM ' . $wpdb->prefix . 'options WHERE option_name=" . $transient;
$transient_timeout = $wpdb->get_var( $wpdb->prepare( $query ) );
the returned value is a timestamp, but i”m sure you know how to handle it from here.
Related Posts:
- Add Hook for clearing transient when post is added
- What is the best way to cache pages and queries in WordPress?
- How to display SQL query that ran in query?
- How to Use Wildcards in $wpdb Queries Using $wpdb->get_results & $wpdb->prepare?
- wpdb get posts by taxonomy SQL
- Multipart/formatted MySQL query problem
- How to delete a transient on post/page publish?
- Transient not working for custom loops
- WordPress creating excessive joins on meta_query with search
- cron job to auto delete posts of a specific post type older than x days
- Are database queries created using WordPress filters protected from SQL injection?
- Get posts by category with pure SQL query
- Difference between fragment caching and wp_cache
- Custom query to get terms from post ids
- How to remove duplicate query on page load or make them cacheable
- How many queries are normal to execute on a WP site?
- What’s wrong with my $wpdb prepare?
- Why a URL with a query is always slower than that without a query?
- How do I see the mysql query generated by get_posts( $args )?
- sql select query in wordpress ‘page’ [closed]
- problem with sql query in wordpress plugin
- Attempt to improve WP search, can someone check my SQL query?
- wpdb query problem to access previous 3 days posts
- I can’t figure out what’s wrong with this statement. $wpdb->query update
- Transient api Caches confused
- Custom Query – Based on user input
- how to insert missing tags into the posts through mySQL?
- How to write update query in WordPress to expire transients
- $wpdb->prepare affecting the query?
- WordPress SQL search, how to handle SQL Injection?
- exclude pingbacks from wordpress SQL query
- prepare function sql safe method
- WordPress SQL query to tag all posts containing a specific word on title
- Select column name dynamically mySQL Query
- How do I query for posts by custom meta and those that have been stickied?
- Change pure SQL database query to WordPress post query?
- Cannot get sql request from Query object?
- I want to get on those users their meta value are like “AGENT” .. but this query is not working
- Display data from phpMyAdmin with WordPress
- Hook into the Admin Dashboard and redirect users
- SQL to Query the db and return all posts and it’s metas
- SQL query to delete users with multiple meta keys and comments
- Nested select statements not working
- Is there any way to get all custom posts and all custom terms with it’s meta in few queries?
- Speed up search query that searches in post meta?
- Are there any best practices for creating a Like/Favourite feature in WordPress using custom MySQL tables and without any plugins?
- Fastest and most efficient SQL query to check if UID exists
- How to make MySQL search queries with quotes
- How i make a custom sql query for Woocommerce
- $wpdb query for price in custom field value
- Run an update query in a function
- How to display a specific category using a custom Query in WordPress?
- Slow query when joining wp_posts with a lookup-table?
- Should I use transients for these API call results?
- Wpdb generates too many queries
- learn to run wpdb class
- SQL Query : how copy all tags of post into their post content in wordpress by sql query
- Where can I find the SQL to get the most used information by wordpress database?
- Custom Query for wp_posts using wp_postmeta
- 3 queries to update WordPress
- Custom query_var causes displaying posts archive on front page
- What is the most efficient way of implementing a favorite post system?
- Query by one meta_key and sort by another (possibly NULL value)
- Query & Sort Comments by custom comment meta
- How to count get_users query?
- Delete duplicate rows from wordpress database where a column is duplicate in phpmyadmin
- Does WordPress’s HTTP API use any caching?
- Two differents queries in archive page
- How to set back query var author_name after unset it?
- My SQL function to change user_name
- How to retrieve elements from another table in a SQL query?
- List all posts from past week grouped by sub-category
- Query Custom Post Type posts by Keyword/url slug
- Query to Get All Users from wp_users With NO matching user_id In wp_usermeta
- WordPress custom setting page – add flashing message
- Custom query AFTER rss fetch_feed not working
- wp_options flooded with transient API entires
- Multiple Category Query
- list all categories that have a certain word in title
- sort query results by newest
- How to reset usual $query on search page to push custom $wpdb query there?
- How to delete all posts, categories and tags from WordPress database
- Query the WordPress database to get data together with replaced information
- Query for Custom Post Type UI Does Not Loop All the Post
- How to display data from db in select list [closed]
- I am officially missing something about transient posts
- How to add a Variable to post query
- Sort a list of a CPT ( job) if a meta is empty
- Build A Custom SQL Query for WordPress Search
- Trouble migrating custom post types from non-wordpress cms
- “order” does not affect order of custom query
- Create a new post on a specified publish date via link?
- Exclude Posts from a Widget
- Multiple terms not working on taxonomy
- Run search query again without pagination gives no results?
- Custom WordPress SQL Query 4 posts per custom taxonomy
- WP_Query orderby meta key/value suddely stopped working
- WooCommerce Total # orders [closed]
- SQL Query to get post_id from wp_posts and and meta_key(s) from wp_postmeta
- How to show sticky posts on all pages of the pagination, not just the first page?