Yoast_I18n_WordPressOrg_v3::__construct() public Yoast 1.0
Constructs the i18n module for wordpress.org.
Required fields are the 'textdomain', 'plugin_name' and 'hook'.
{} Это метод класса: Yoast_I18n_WordPressOrg_v3{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Yoast_I18n_WordPressOrg_v3 = new Yoast_I18n_WordPressOrg_v3(); $Yoast_I18n_WordPressOrg_v3->__construct( $args, $show_translation_box );
- $args(массив) (обязательный)
- The settings for the i18n module.
- $show_translation_box(true/false)
- Whether the translation box should be shown.
По умолчанию: true
Код Yoast_I18n_WordPressOrg_v3::__construct() Yoast I18n WordPressOrg v3:: construct Yoast 15.6.2
public function __construct( $args, $show_translation_box = true ) {
$args = $this->set_defaults( $args );
$this->i18n = new Yoast_I18n_v3( $args, $show_translation_box );
$this->set_api_url( $args['textdomain'] );
}