mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-23 04:13:53 +02:00
correct action hook for register_admin_styles
Changed the action hook from 'admin_print_styles' to 'admin_enqueue_scripts' which is better. See: http://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_scripts See: http://make.wordpress.org/core/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/
This commit is contained in:
parent
5d70b7e79e
commit
68da31e4be
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class PluginName {
|
||||||
add_action( 'init', array( $this, 'plugin_textdomain' ) );
|
add_action( 'init', array( $this, 'plugin_textdomain' ) );
|
||||||
|
|
||||||
// Register admin styles and scripts
|
// Register admin styles and scripts
|
||||||
add_action( 'admin_print_styles', array( $this, 'register_admin_styles' ) );
|
add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_styles' ) );
|
||||||
add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts' ) );
|
add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts' ) );
|
||||||
|
|
||||||
// Register site styles and scripts
|
// Register site styles and scripts
|
||||||
|
|
Loading…
Reference in a new issue