Support Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.






Pages: [1]
Author Topic: Add __() for translation
e-labo
Newbie
Posts: 1
Permalink
Post Add __() for translation
on: January 16, 2017, 10:17
Quote

Hi,

Can you add __() in

plugins/ultimate-wp-query-search-filter/classes/uwpqsf-front-class.php line 22

$html .= '<option value="'.$term->slug.'" '.$selected.'>'.__($term->name).'</option>';}

for translations.

Thanks

tck30
Administrator
Posts: 530
Permalink
Post Re: Add __() for translation
on: January 17, 2017, 05:45
Quote

If you goto https://plugins.svn.wordpress.org/ultimate-wp-query-search-filter/trunk/classes/uwpqsf-front-class.php, you can see there already hooks for you to customize fields.

Also, I don't think simply add __() , it wont work because it is dynamic content. You need to use spritf().

New Add-On Plugins for Ultimate WP Query Search Filter has been released! Check it out now.

Buy Me A Beer! Thanks

Pages: [1]