Support » Plugin: Polylang » Comments Jetpack

Viewing 1 replies (of 1 total)
  • Plugin Author Chouby

    (@chouby)

    It works pretty much the same way. Add this code in a custom plugin:

    add_filter('option_highlander_comment_form_prompt', 'translate_greeting_text');
    if (is_admin() && isset($_GET['page']) && $_GET['page'] == 'mlang')
    	get_option('highlander_comment_form_prompt'); // call the option on polylang admin page
    
    function translate_greeting_text($option) {
    	if (is_admin())
    		pll_register_string('Greeting text', $option);
    	else
    		$options = pll__($option);
    	return $option;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Comments Jetpack’ is closed to new replies.