get('Version') ); }, PHP_INT_MAX /* load late */ ); add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2); function change_existing_currency_symbol( $currency_symbol, $currency ) { switch( $currency ) { case 'SAR': if(ICL_LANGUAGE_CODE=='en'){ $currency_symbol = 'SAR'; }else{ $currency_symbol = 'ريال'; } break; } return $currency_symbol; } /*camweara code starts*/ function add_theme_scripts() { wp_enqueue_style( 'style', get_stylesheet_uri() ); if (is_singular( 'product' ) ) { wp_enqueue_script( 'script', 'https://cdn.camweara.com/integrations/camweara_api.js', array ( 'jquery' ), 1.56, true); global $post; $product = wc_get_product( $post->ID ); echo ""; echo ""; } } add_action( 'wp_enqueue_scripts', 'add_theme_scripts' ); /*camweara code ends*/