• Resolved villullas

    (@villullas)


    Hi and thank you so much for this amazing plugin.

    I was trying to use the new default country filter but I don’t know how.

    I tried like this:
    add_filter( ‘wc_pv_set_default_country’ , ‘es’ );
    or
    add_filter( ‘wc_pv_set_default_country’ , ‘Spain’ );

    Sorry about my ignorance, but how it works?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Precious Omonzejele

    (@preciousomonze)

    Howdy folk! No one is ignorant dear??.
    You’re to use the country’s initial(I think that’s the write word, so i think its ‘es’ for spain right?
    So filter hooks work A bit different :
    Allow me get to my laptop later today, will give you the correct code.
    I should even put up sample codes for future questions like this??

    Thread Starter villullas

    (@villullas)

    Thank you so much and yeah, some examples would be perfect xD

    Plugin Author Precious Omonzejele

    (@preciousomonze)

    Hello @villullas ,
    Here is the solution, tested it again myself .

    function pekky_cx_default_country( $value ){
    	$value = 'es'; // Spain
    	return $value;
    }
    add_filter( 'wc_pv_set_default_country', 'pekky_cx_default_country' );

    More samples here.
    Marking this as solved!
    Do have a nice time, stay safe ??.
    Lastly do not forget to try out Pancakes ?????? ! and Thanks for the rating ??.

    Thread Starter villullas

    (@villullas)

    Thank you so much, now it’s working perfectly!

    Plugin Author Precious Omonzejele

    (@preciousomonze)

    ????????
    Ten un buen dia

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Default country filter’ is closed to new replies.