mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
Merge pull request #71 from GeertDD/const
Updates related to the new VERSION constant
This commit is contained in:
commit
0900698aa3
1 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,7 @@ class Plugin_Name {
|
|||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @const string
|
||||
* @var string
|
||||
*/
|
||||
const VERSION = '1.0.0';
|
||||
|
||||
|
@ -245,7 +245,7 @@ class Plugin_Name {
|
|||
|
||||
$screen = get_current_screen();
|
||||
if ( $screen->id == $this->plugin_screen_hook_suffix ) {
|
||||
wp_enqueue_style( $this->plugin_slug .'-admin-styles', plugins_url( 'css/admin.css', __FILE__ ), array(), $this->version );
|
||||
wp_enqueue_style( $this->plugin_slug .'-admin-styles', plugins_url( 'css/admin.css', __FILE__ ), array(), self::VERSION );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -265,7 +265,7 @@ class Plugin_Name {
|
|||
|
||||
$screen = get_current_screen();
|
||||
if ( $screen->id == $this->plugin_screen_hook_suffix ) {
|
||||
wp_enqueue_script( $this->plugin_slug . '-admin-script', plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery' ), $this->version );
|
||||
wp_enqueue_script( $this->plugin_slug . '-admin-script', plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery' ), self::VERSION );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -276,7 +276,7 @@ class Plugin_Name {
|
|||
* @since 1.0.0
|
||||
*/
|
||||
public function enqueue_styles() {
|
||||
wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'css/public.css', __FILE__ ), array(), $this->version );
|
||||
wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'css/public.css', __FILE__ ), array(), self::VERSION );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -285,7 +285,7 @@ class Plugin_Name {
|
|||
* @since 1.0.0
|
||||
*/
|
||||
public function enqueue_scripts() {
|
||||
wp_enqueue_script( $this->plugin_slug . '-plugin-script', plugins_url( 'js/public.js', __FILE__ ), array( 'jquery' ), $this->version );
|
||||
wp_enqueue_script( $this->plugin_slug . '-plugin-script', plugins_url( 'js/public.js', __FILE__ ), array( 'jquery' ), self::VERSION );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue