override_load_textdomain

过滤钩子


apply_filters( 'override_load_textdomain', false, $domain, $mofile )
参数
  • (bool)
    $override
    Whether to override the .mo file loading. Default false.
    Required:
  • (string)
    $domain
    Text domain. Unique identifier for retrieving translated strings.
    Required:
  • (string)
    $mofile
    Path to the MO file.
    Required:
定义位置
  • wp-includes/l10n.php
    , line 733
引入
2.9.0
弃用

Filters whether to override the .mo file loading.

$plugin_override = apply_filters( 'override_load_textdomain', false, $domain, $mofile );