admin_url(), ); wp_add_inline_script( WOO_DASH_APP, 'var wcSettings = '. json_encode( $settings ) . ';', 'before' ); // Resets lodash to wp-admin's version of lodash wp_add_inline_script( WOO_DASH_APP, '_.noConflict();', 'after' ); } add_action( 'init', 'woo_dash_register_script' ); /** * Load plugin text domain for translations. */ function woo_dash_load_plugin_textdomain() { load_plugin_textdomain( 'woo-dash', false, basename( dirname( __FILE__ ) ) . '/languages' ); } add_action( 'plugins_loaded', 'woo_dash_load_plugin_textdomain' );