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 ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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