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 ]

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