Changeset 3326798
- Timestamp:
- 07/12/2025 03:01:57 PM (9 months ago)
- File:
-
- 1 edited
-
just-translate/trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
just-translate/trunk/readme.txt
r3326797 r3326798 59 59 Filter the URL slug for a given locale. 60 60 61 ` ``php61 `php 62 62 add_filter('wpjt_locale_slug', function($slug, $locale) { 63 63 $slugs = [ … … 68 68 return $slugs[$locale] ?? $slug; 69 69 }, 10, 2); 70 ` ``70 ` 71 71 72 72 **2. `wpjt_setting_locales`** 73 73 Add or remove locale codes in the settings panel. 74 74 75 ` ``php75 `php 76 76 add_filter('wpjt_setting_locales', function($locales) { 77 77 $locales[] = 'jv-ID'; … … 79 79 return $locales; 80 80 }); 81 ` ``81 ` 82 82 83 83 **3. `wpjt_should_skip_string`** 84 84 Skip specific strings from being translated. 85 85 86 ` ``php86 `php 87 87 add_filter('wpjt_should_skip_string', function($skip, $string) { 88 88 if (trim($string) === 'WordPress') { … … 91 91 return $skip; 92 92 }, 10, 2); 93 ` ``93 ` 94 94 95 95 == Frequently Asked Questions ==
Note: See TracChangeset
for help on using the changeset viewer.