mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 20:03:53 +02:00
Merge pull request #10 from Bonnevoy/master
Fix filenames plugin-specifix js and css files.
This commit is contained in:
commit
abf0b19e33
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ class PluginName {
|
|||
public function register_plugin_styles() {
|
||||
|
||||
// TODO change 'plugin-name' to the name of your plugin
|
||||
wp_register_script( 'plugin-name-admin-styles', plugins_url( 'plugin-name/css/admin.css' ) );
|
||||
wp_register_script( 'plugin-name-admin-styles', plugins_url( 'plugin-name/css/display.css' ) );
|
||||
wp_enqueue_script( 'plugin-name-admin-styles' );
|
||||
|
||||
} // end register_plugin_styles
|
||||
|
@ -125,7 +125,7 @@ class PluginName {
|
|||
public function register_plugin_scripts() {
|
||||
|
||||
// TODO change 'plugin-name' to the name of your plugin
|
||||
wp_register_script( 'plugin-name-plugin-script', plugins_url( 'plugin-name/js/plugin.js' ) );
|
||||
wp_register_script( 'plugin-name-plugin-script', plugins_url( 'plugin-name/js/display.js' ) );
|
||||
wp_enqueue_script( 'plugin-name-plugin-script' );
|
||||
|
||||
} // end register_plugin_scripts
|
||||
|
|
Loading…
Reference in a new issue