admin_url(), 'embedBreadcrumbs' => wc_admin_get_embed_breadcrumbs(), 'siteLocale' => esc_attr( get_bloginfo( 'language' ) ), 'currency' => wc_admin_currency_settings(), 'date' => array( 'dow' => get_option( 'start_of_week', 0 ), ), ); wp_add_inline_script( WC_ADMIN_APP, 'var wcSettings = '. json_encode( $settings ) . ';', 'before' ); // Resets lodash to wp-admin's version of lodash wp_add_inline_script( WC_ADMIN_APP, '_.noConflict();', 'after' ); } add_action( 'admin_enqueue_scripts', 'wc_admin_register_script' ); /** * Load plugin text domain for translations. */ function wc_admin_load_plugin_textdomain() { load_plugin_textdomain( 'wc-admin', false, basename( dirname( __FILE__ ) ) . '/languages' ); } add_action( 'plugins_loaded', 'wc_admin_load_plugin_textdomain' );