Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_maybe_update_themes [ WordPress Function ]

_maybe_update_themes ( No parameters )
Access:
  • private
Defined at:



Check themes versions only after a duration of time.

This is for performance reasons to make sure that on the theme version checker is not run on every page load.

Source


<?php
function _maybe_update_themes( ) {
    
$current get_site_transient'update_themes' );
    if ( isset( 
$current->last_checked ) && 43200 > ( time( ) - $current->last_checked ) )
        return;

    
wp_update_themes();
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics