From bfadb234f2733b85750a450be96e172e38f17a52 Mon Sep 17 00:00:00 2001 From: Max Kohler Date: Wed, 12 Apr 2017 21:29:18 +0100 Subject: [PATCH] Add example for add_js --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 49777bb..bbbd5cb 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,15 @@ Jigsaw::show_notice('Error flushing cache, is the plugin activated?', 'error'); Jigsaw::add_css('css/my-admin-style.css'); ``` -#JigsawPermalinks +### Add a JS file to the admin + +###### `Jigsaw::add_js($css_file);` + +```php +Jigsaw::add_js('js/my-admin-script.js'); +``` + +# JigsawPermalinks ### Set the base of the author permalink