Plugin Directory

Changeset 3326798


Ignore:
Timestamp:
07/12/2025 03:01:57 PM (9 months ago)
Author:
vaksin
Message:

readme.txt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • just-translate/trunk/readme.txt

    r3326797 r3326798  
    5959Filter the URL slug for a given locale.
    6060
    61 ```php
     61`php
    6262add_filter('wpjt_locale_slug', function($slug, $locale) {
    6363    $slugs = [
     
    6868    return $slugs[$locale] ?? $slug;
    6969}, 10, 2);
    70 ```
     70`
    7171
    7272**2. `wpjt_setting_locales`** 
    7373Add or remove locale codes in the settings panel.
    7474
    75 ```php
     75`php
    7676add_filter('wpjt_setting_locales', function($locales) {
    7777    $locales[] = 'jv-ID';
     
    7979    return $locales;
    8080});
    81 ```
     81`
    8282
    8383**3. `wpjt_should_skip_string`** 
    8484Skip specific strings from being translated.
    8585
    86 ```php
     86`php
    8787add_filter('wpjt_should_skip_string', function($skip, $string) {
    8888    if (trim($string) === 'WordPress') {
     
    9191    return $skip;
    9292}, 10, 2);
    93 ```
     93`
    9494
    9595== Frequently Asked Questions ==
Note: See TracChangeset for help on using the changeset viewer.