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 ]

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