This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by jennyM-2 2 months, 1 week ago.

Assigned support staff: Rajeeb Banstola.

Author Posts
August 14, 2019 at 7:28 pm #4397183

jennyM-2

I am trying to:

Remove the following code which is being inserted into the page :

        <script type="text/javascript">
        /* <![CDATA[ */
            if( typeof woocommerce_price_slider_params !== 'undefined' ) {
                woocommerce_price_slider_params.currency_format_symbol = wcml_mc_settings.current_currency.symbol;
            }
        /* ]]> */
        </script>

This markup is inserted by the WCML plugin class WCML_Price_Filter, via the function override_currency_symbol() hooked to the wp_footer action.

I don't want this and would like a solution how to remove as I have taken things to bit and can't see a way of unhooking that call?

Link to a page where the issue can be seen:

hidden link

I expected to see:

No unnecessary js appended to the footer.

Instead, I got:

The above, kindly advise if you cAN

August 15, 2019 at 5:53 am #4399185

Rajeeb Banstola

Hi,

The script is added for multi currency support. Please go to WooCommerce - WooCommerce Multilingual - Multi-currency and disable it.

August 15, 2019 at 6:06 am #4399195

jennyM-2

That is not a solution, I never said anything about not wanting multicurrency, but I do want to understand how that action hook can be removed so that markup is not inserted?

August 15, 2019 at 5:29 pm #4402647

jennyM-2

My issue is resolved now. Thank you!