An alert block as well as a cli command to query posts which contain the alert block.
This section describes how to install the plugin and get it working.
- Download the latest release from the releases page.
- Upload the plugin files to the
/wp-content/plugins/dmg-alert
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress
Add the alert block to a post or page. The alert block has the following attributes:
type
- The type of alert. Can benotice
,warning
orerror
. Defaults tonotice
.
The plugin provides a cli command to query posts (not pages) which contain the alert block. The command is wp dmg-alert search
. The command has options for the date range. The date range options are --date-before
and --date-after
. The date range options accept a date string in the format YYYY-MM-DD
. The date range options are optional. If no date range options are provided, the command will return all posts from the last 30 days including today.
= 0.1.0 =
- Initial Release