public static function create_from_post(WP_POST $post) { $document = new self(); $document->populate_from_post($post); return $document; }