get_others_drafts

get_others_drafts

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.3

apply_filters('get_others_drafts') is found 1 times:

  • /wp-admin/includes/deprecated.php line 715
    		$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);
    }
    
    /**
     * Retrieve drafts from other users.
     *
     * @deprecated 3.1.0 Use get_posts()