Support » Plugin: HMS Testimonials » language visitor form

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff K

    (@kreitje)

    Hey Ramzii,

    Adding language support is on my to do list. I will look into adding filters to override the text for a quick solution.

    Plugin Author Jeff K

    (@kreitje)

    Hey Ramzii,

    I have just pushed another update (v 2.0.3) that adds filters to the form. Add the filters to your themes functions.php file. If you don’t add a filter it will default to Name, Website, Testimonial and Submit Testimonial as it does now.

    You can change the text using the following example code.

    function name_override($text) {
    	return 'Please Enter Your Name';
    }
    function website_override($text) {
    	return 'Enter Your Website Address';
    }
    
    function testimonial_override($text) {
    	return 'Your Review Here';
    }
    function submit_override($text) {
    	return 'Save Review';
    }
    add_filter('hms_testimonials_sc_name', 'name_override');
    add_filter('hms_testimonials_sc_website', 'website_override');
    add_filter('hms_testimonials_sc_testimonial', 'testimonial_override');
    add_filter('hms_testimonials_sc_submit', 'submit_override');

    Jeff

    thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘language visitor form’ is closed to new replies.