Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gdarko committed Dec 5, 2021
1 parent 792e73c commit d9cb7f8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@ public function dismiss()
public function reset()
```

### 4. File templates

The plugin supports file templates instead of simple string messages.

To display notice from a file template, you can provide a path to it with the `file://` prefix as follows:

```
file:///home/site.com/public_html/wp-content/themes/my-theme/templates/my-notice.php
```

## License

```
Expand All @@ -225,4 +235,4 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with WP Notices. If not, see <https://www.gnu.org/licenses/>.
```
```

0 comments on commit d9cb7f8

Please sign in to comment.