Switch language

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




get_preferred_from_update_core [ WordPress Function ]

get_preferred_from_update_core ( No parameters )
Returns:
  • (object) the response from the API
Defined at:



Selects the first update version from the update_core option

Source


<?php
function get_preferred_from_update_core() {
    
$updates get_core_updates();
    if ( !
is_array$updates ) )
        return 
false;
    if ( empty( 
$updates ) )
        return (object)array(
'response' => 'latest');
    return 
$updates[0];
}
?>

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