Usage
To use BoilerPlate first create your Plate post in the `Plate` Panel in the Admin Area, in the same way you would create a post or a page.
To use the Plate text insert the following Shortcode into your post where you would like it to appear, or the PHP into your template where you would like it text to appear.
Shortcode
[ BoilerPlate plate = "title" search = "replace"]
PHP
<?php do_action(' BoilerPlate','plate = "title" search = "replace"');?>
The Attributes
- plate
- Purpose: Indicates the `title` of the BoilerPlate post to use as the BoilerPlate text.
- Required: Yes. Failure to supply the `plate` attribute or if the post does not exist it will not error it will just remove the shortcode from the post.
- search
- Purpose: `search` indicates the text you want to replace in the BoilerPlate text, only use alphanumeric characters and _. This will be replaced with the `replace` text. You can have as many of these attributes as you require
- Required: No.
You can nest BoilerPlate text inside other BoilerPlate text, however you are limited to 10 sub-pages