Switch language

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




get_last_updated [ WordPress Function ]

get_last_updated ( $deprecated = '', $start = 0, $quantity = 40 )
Parameters:
  • (mixed) $deprecated Not used
  • (int) $start The offset
  • (int) $quantity The maximum number of blogs to retrieve. Default is 40.
Returns:
  • (array) The list of blogs
Defined at:



Get a list of most recently updated blogs.

Source


<?php
function get_last_updated$deprecated ''$start 0$quantity 40 ) {
    global 
$wpdb;

    if ( ! empty( 
$deprecated ) )
        
_deprecated_argument__FUNCTION__'MU' ); // never used

    
return $wpdb->get_results$wpdb->prepare("SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = %d AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' AND last_updated != '0000-00-00 00:00:00' ORDER BY last_updated DESC limit %d, %d"$wpdb->siteid$start$quantity ) , ARRAY_A );
}
?>

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