Advertisements

twentyeleven_admin_enqueue_scripts

Definition:
function twentyeleven_admin_enqueue_scripts( $hook_suffix ) {}

Properly enqueue styles and scripts for our theme options page.
This function is attached to the admin_enqueue_scripts action hook.

Parameters

  • $hook_suffix

Source code

function twentyeleven_admin_enqueue_scripts( $hook_suffix ) {

	wp_enqueue_style( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.css', false, '2011-04-28' );

	wp_enqueue_script( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.js', array( 'farbtastic' ), '2011-06-10' );

	wp_enqueue_style( 'farbtastic' );

}

14707

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: