Support » Plugin: Age Gate » Adding language switcher

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @stoledo55,

    You can do this like so in your themes functions:

    
    function add_switcher_to_age_gate(){
    	$wpml_short = do_shortcode('[wpml_language_selector_footer]');
    	return $wpml_short;
    }
    add_filter('age_gate_after', 'add_switcher_to_age_gate');
    

    If you want it before the form, use age_gate_before instead.

    Thanks
    Phil

    Thanks you for your response but i have solved it with another way.
    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.