get_last_updated
函数
get_last_updated ( $deprecated = '', $start = 0, $quantity = 40 )
- 参数
-
-
(mixed)
$deprecated
Not used.- Required: 否
- Default: (empty)
-
(int)
$start
Optional. Number of blogs to offset the query. Used to build LIMIT clause. Can be used for pagination. Default 0.- Required: 否
-
(int)
$quantity
Optional. The maximum number of blogs to retrieve. Default 40.- Required: 否
- Default: 40
-
(mixed)
- 返回值
-
- (array) The list of blogs.
- 定义位置
-
-
wp-includes/ms-blogs.php
, line 818
-
wp-includes/ms-blogs.php
- 引入
- –
- 弃用
- –
Get a list of most recently updated blogs.
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", get_current_network_id(), $start, $quantity ), ARRAY_A ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。