get_site_transient [ WordPress Function ]
get_site_transient ( $transient )
| Parameters: |
|
| Uses: | |
| See: | |
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: set_site_transient, delete_site_transient, get_transient, set_transient, delete_transient
Get the value of a site transient.
If the transient does not exist or does not have a value, then the return value will be false.
Source
<?php
function get_site_transient( $transient ) {
global $_wp_using_ext_object_cache;
$pre = apply_filters( 'pre_site_transient_' . $transient, false );
if ( false !== $pre )
return $pre;
if ( $_wp_using_ext_object_cache ) {
$value = wp_cache_get( $transient, 'site-transient' );
} else {
// Core transients that do not have a timeout. Listed here so querying timeouts can be avoided.
$no_timeout = array('update_core', 'update_plugins', 'update_themes');
$transient_option = '_site_transient_' . $transient;
if ( ! in_array( $transient, $no_timeout ) ) {
$transient_timeout = '_site_transient_timeout_' . $transient;
$timeout = get_site_option( $transient_timeout );
if ( false !== $timeout && $timeout < time() ) {
delete_site_option( $transient_option );
delete_site_option( $transient_timeout );
return false;
}
}
$value = get_site_option( $transient_option );
}
return apply_filters( 'site_transient_' . $transient, $value );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/get site transient « WordPress Codex
Function Reference/get site transient. Essentially the same as get_transient() but works network wide when using WP Multisite ...
codex.wordpress.org - get_site_transient | A HitchHackers guide through WordPress
Feb 12, 2011 ... function get_site_transient( $transient ) { global $_wp_using_ext_object_cache; $pre = apply_filters( 'pre_site_transient_' . $transient, false ); if ...
hitchhackerguide.com - get_site_transient (WordPress Function) - WPSeek.com
WordPress lookup for get_site_transient, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - PHPXRef 0.7 : WordPress : Function Reference: get_site_transient()
Function and Method Cross Reference. get_site_transient(). Defined at: /wp- includes/option.php -> line 952. Referenced 32 times: /wp-includes/theme.php ...
phpxref.ftwr.co.uk