$afpw_options['language'], 'appId' => $afpw_options['appId'] ); //* Pass the language option from the database to javascript. wp_localize_script( 'afpw-author-facebook-page', 'afpw_script_vars', $data ); } add_action( 'wp_enqueue_scripts', 'afpw_register_fb_pg_wd_js' ); function afpw_facebook_page_widget_register_admin_css() { // Register the style like this for a plugin: wp_register_style( 'afpw', AFPW_PLUGIN_URL.'/css/afpw.css', array(), AFPW_PLUGIN_VERSION, 'all' ); wp_enqueue_style( 'afpw' ); } add_action( 'admin_enqueue_scripts', 'afpw_facebook_page_widget_register_admin_css' ); ?>