Title: Virtua Brasil &#8211; Diário Oficial
Author: virtuabrasil
Published: <strong>October 5, 2026</strong>
Last modified: October 5, 2026

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/virtua-brasil-diario-oficial.svg)

# Virtua Brasil – Diário Oficial

 By [virtuabrasil](https://profiles.wordpress.org/virtuabrasil/)

[Download](https://downloads.wordpress.org/plugin/virtua-brasil-diario-oficial.2.2.5.zip)

 * [Details](https://wordpress.org/plugins/virtua-brasil-diario-oficial/#description)
 * [Reviews](https://wordpress.org/plugins/virtua-brasil-diario-oficial/#reviews)
 *  [Installation](https://wordpress.org/plugins/virtua-brasil-diario-oficial/#installation)
 * [Development](https://wordpress.org/plugins/virtua-brasil-diario-oficial/#developers)

 [Support](https://wordpress.org/support/plugin/virtua-brasil-diario-oficial/)

## Description

Virtua Brasil – Diário Oficial is a WordPress plugin for managing and publishing
municipal Official Gazette editions.

Main features:

 * Create and publish PDF editions.
 * Public calendar highlighting dates with publications.
 * Search by title, edition number, date range, category, and department/agency.
 * Public and administrative pagination.
 * Friendly URLs organized by year and edition number.
 * Manageable categories and departments/agencies.
 * File versioning for replacements and corrections.
 * Remove items from public display while preserving administrative history.
 * Audit trail with user, action, date, and time.
 * Migration from the legacy plugin structure without deleting existing PDF files.
 * Compatibility with shortcodes used by the previous version.
 * Configurable colors to match the website’s visual identity.
 * Environment diagnostics and optional server capability information.
 * WP-CLI commands for administration and migration.

The plugin does not send data to external services and does not load code from CDNs.

PDF processing does not execute external binaries or operating-system commands. 
Uploaded files are preserved, and publication does not depend on external server
tools.

This plugin helps organize and publish an Official Gazette, but it does not provide
or guarantee legal compliance. The public body is responsible for determining the
official publication channel, which acts must be published, applicable deadlines,
document retention requirements, and the legal basis that applies under its own 
legislation.

### Shortcodes

    ```
    [virtua_diario_oficial] - Displays the header, calendar, filters, publication list, and pagination.

    [virtua_diario_verificar] - Displays the document-code verification interface when this feature is used.

    [diario_oficial] - Displays the calendar and is kept for compatibility with the previous version.

    [diario_oficial_search] - Displays filters and search results and is kept for compatibility with the previous version.

    [diario_oficial_list] - Displays the paginated list and is kept for compatibility with the previous version.
    ```

Aliases with the `_v2` suffix from the previous version are also recognized.

### Documentation and Support

 * Product page: https://wp.virtuabrasil.com.br/plugin/diario-oficial
 * Full manual: https://wp.virtuabrasil.com.br/plugin/diario-oficial/manual
 * Support: https://wp.virtuabrasil.com.br/atendimento
 * Virtua Brasil: https://www.virtuabrasil.com.br/

These addresses are documentation and support links only. The plugin does not make
automatic requests to these websites and does not send telemetry.

### Privacy

The plugin stores information required to administer the Official Gazette in the
WordPress database, including identifiers of WordPress users responsible for administrative
actions and the corresponding date/time records in the audit trail.

PDF files are stored in the WordPress uploads directory. The plugin does not send
personal data, documents, metrics, or telemetry to external services.

Administrators should define access, retention, and publication policies that comply
with the rules applicable to their organization.

### PDF Page Counting

Page counts are read locally using the bundled Smalot/PdfParser library (LGPL-3.0)
and Symfony mbstring polyfill (MIT). Licenses and modification details are in includes/
vendor. No external service or executable is used. PHP zlib and iconv are required
for inspection. Encrypted, unsupported files, files over 32 MiB, or inspections 
exceeding available memory may have an unknown page count; the PDF remains unchanged
and publishable.

For an existing edition, open its edit screen and choose Recalcular páginas (Recalculate
pages) in the file history. This updates only the stored page count and adds an 
audit entry when it changes; it does not replace the PDF or create a new edition.

## Installation

 1. In the WordPress dashboard, go to Plugins > Add New Plugin > Upload Plugin.
 2. Upload the ZIP file and activate the plugin.
 3. Go to Official Gazette > Settings and review the public page, colors, and other
    options.
 4. Create or edit the Official Gazette page and use the `[virtua_diario_oficial]` 
    shortcode for the complete interface.
 5. On websites already using the previous version, go to Official Gazette > Migration
    and complete the import before removing the old plugin.

Before migrating an existing archive, back up the database and `wp-content/uploads/
diario-oficial`.

## FAQ

### Does the plugin require external tools to process PDFs?

No. The plugin does not execute external binaries or operating-system commands. 
PDF files are stored in WordPress and preserved as uploaded.

### Does the plugin delete the previous PDF when a file is replaced?

No. Replacements and corrections keep previous versions recorded for administrative
and auditing purposes.

### Can a publication be removed from the public website without deleting its history?

Yes. A publication can be removed from public display while remaining available 
in the administrative area, together with its removal reason and audit trail.

### Does the plugin guarantee that a municipality complies with every law applicable to its Official Gazette?

No. The plugin provides technical features for publication, organization, versioning,
and transparency. Legal compliance depends on applicable federal, state, and municipal
rules and must be validated by the public body and its legal advisors.

### Does the plugin send documents or data to Virtua Brasil?

No. Core functionality runs on the WordPress website and its hosting server. The
plugin has no telemetry and does not send PDF files to external services.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Virtua Brasil – Diário Oficial” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ virtuabrasil ](https://profiles.wordpress.org/virtuabrasil/)

[Translate “Virtua Brasil – Diário Oficial” into your language.](https://translate.wordpress.org/projects/wp-plugins/virtua-brasil-diario-oficial)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/virtua-brasil-diario-oficial/),
check out the [SVN repository](https://plugins.svn.wordpress.org/virtua-brasil-diario-oficial/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/virtua-brasil-diario-oficial/)
by [RSS](https://plugins.trac.wordpress.org/log/virtua-brasil-diario-oficial/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.2.4

 * Security and WordPress.org compatibility pass: output escaping, filesystem API
   usage, upload cleanup and query-review adjustments.

#### 2.2.3

 * Centralizes runtime plugin metadata (name, version, author, and text domain) 
   from the main plugin header.
 * Adds legal-basis source selection with either an external URL or a PDF from the
   WordPress Media Library.
 * Changes the public plugin name to `Virtua Brasil - Diário Oficial` and prepares
   the requested slug `virtua-brasil-diario-oficial`.
 * Changes the base plugin description and WordPress.org readme documentation to
   English for directory review and translation compatibility.
 * Stops writing executable PHP code to the uploads archive protection file and 
   creates an empty `index.php` instead.
 * Makes the direct-access guard in the WP-CLI integration explicit.

#### 2.2.2

 * Adjusts PDF processing for WordPress.org directory checks without executing external
   server binaries.
 * Aligns plugin metadata with the submitted directory slug.
 * Treats edition numbering per year, allowing the sequence to restart at 1 each
   new year.
 * Uses the date range as the portal time filter, avoiding conflicts between a date
   and a separately selected year.
 * Automatically fills the current-year range when opening search and updates the
   counter according to the searched period.
 * Adjusts the “Go to page” selector for large pagination sets.
 * Removes the visual indicator after the edition number on public cards.
 * Prepares metadata and documentation for public distribution.
 * Adds an About screen with institutional information, manual, product page, and
   support links.

#### 2.2.1

 * Reworks frontend styles with stronger isolation to reduce theme conflicts.
 * Fixes icon, card, calendar, button, and pagination proportions in layouts with
   sidebars.

#### 2.2.0

 * Redesigns the frontend to respect the real content-column width provided by the
   active theme.
 * Adds a quick month/year selector and a shortcut to the current month.
 * Adopts public URLs organized by year and edition number.
 * Adds first-page and last-page shortcuts to AJAX pagination.

#### 2.1.2

 * Adds a secure button to open PDF files from the administrative area.
 * Automatically suggests the next edition number and corresponding title.
 * Validates duplicate edition numbers.
 * Improves legal-basis and migration guidance.

#### 2.0.0

 * Complete rewrite with dedicated database tables, migration, versioning, auditing,
   filters, pagination, and a new frontend.

## Meta

 *  Version **2.2.5**
 *  Last updated **1 day ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 8.1 or higher **
 * Tags
 * [municipality](https://wordpress.org/plugins/tags/municipality/)[publications](https://wordpress.org/plugins/tags/publications/)
   [transparency](https://wordpress.org/plugins/tags/transparency/)
 *  [Advanced View](https://wordpress.org/plugins/virtua-brasil-diario-oficial/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/virtua-brasil-diario-oficial/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/virtua-brasil-diario-oficial/reviews/)

## Contributors

 *   [ virtuabrasil ](https://profiles.wordpress.org/virtuabrasil/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/virtua-brasil-diario-oficial/)