Blocks are used to store parts of email content that are repeated in at least two emails. Then, if this content needs to be updated, it is effectively updated in all emails that include a particular block.
Click on the Blocks link on the WordPress admin menu under Emails menu. The following list of all blocks (both active and inactive) will be displayed:
Clicking on the Title will take you to the block edit page.
You can hide any block list column by clicking on the Screen Options button and unchecking the checkboxes of the columns that you do not want to see in the list.
You can also execute some actions directly from the block list:
- Edit - takes to the block edit page
- Duplicate - creates a copy of block and prepends "Copy of" to the title
- Disable - disables block (nothing will be displayed in place of a block's shortcode in email content)
- Trash - trashes block
You can filter blocks by their status using the default WordPress filter filed. To filter by a particular status, you can also click on any of the status flags next to any block.
You can search blocks by filling in a search field and clicking on Search Blocks. Search will be performed in title field only.
Block Edit Page
Clicking on block title or Edit link will take you to the block edit page:
Block edit page is divided into three sections:
- General block details - set private block title to identify particular block.
- Block content editor - default WordPress editor with rich text functionality. In addition, you can insert dynamic content macros by clicking on Macros at the top right corner.
- Block actions - save, trash or change block status.
To insert block into email, simply click on Blocks and then on the title of the block that you want to insert:
The block will be inserted in a format of WordPress shortcode:
Block shortcode will be substituted with actual content when email is about to be sent.