Switch language

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




_maybe_update_plugins [ WordPress Function ]

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



Check the last time plugins were run before checking plugin versions.

This might have been backported to WordPress 2.6.1 for performance reasons. This is used for the wp-admin to check only so often instead of every page load.

Source


<?php
function _maybe_update_plugins() {
    
$current get_site_transient'update_plugins' );
    if ( isset( 
$current->last_checked ) && 43200 > ( time() - $current->last_checked ) )
        return;
    
wp_update_plugins();
}
?>

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