Definition:
function get_paged_template() {}
Source code
function get_paged_template() {
return get_query_template('paged');
}
1524
Definition:
function get_paged_template() {}
function get_paged_template() {
return get_query_template('paged');
}
1524
Definition:
function &get_page(&$page, $output = OBJECT, $filter = 'raw') {}
returns:Page data.
function &get_page(&$page, $output = OBJECT, $filter = 'raw') {
$p = get_post($page, $output, $filter);
return $p;
}
1522
Definition:
function get_others_unpublished_posts($user_id, $type='any') {}
returns:List of posts from others.
apply_filters('get_others_drafts', $other_unpubs)function get_others_unpublished_posts($user_id, $type='any') {
global $wpdb;
$editable = get_editable_user_ids( $user_id );
if ( in_array($type, array('draft', 'pending')) )
$type_sql = " post_status = '$type' ";
else
$type_sql = " ( post_status = 'draft' OR post_status = 'pending' ) ";
$dir = ( 'pending' == $type ) ? 'ASC' : 'DESC';
if ( !$editable ) {
$other_unpubs = '';
} else {
$editable = join(',', $editable);
$other_unpubs = $wpdb->get_results( $wpdb->prepare("SELECT ID, post_title, post_author FROM $wpdb->posts WHERE post_type = 'post' AND $type_sql AND post_author IN ($editable) AND post_author != %d ORDER BY post_modified $dir", $user_id) );
}
return apply_filters('get_others_drafts', $other_unpubs);
}
1520
Definition:
function get_others_pending($user_id) {}
returns:List of posts with pending review post type from other users.
function get_others_pending($user_id) {
return get_others_unpublished_posts($user_id, 'pending');
}
1518
Definition:
function get_others_drafts($user_id) {}
returns:List of drafts from other users.
function get_others_drafts($user_id) {
return get_others_unpublished_posts($user_id, 'draft');
}
1516