Я получаю ошибку: < /p>
function _load_textdomain_just_in_time была вызвана неправильно.
Перевод нагрузку для домена Themename была запущена слишком рано. Переводы должны быть загружены на действие init или
позже. Пожалуйста, смотрите отладку в WordPress для получения дополнительной информации. (Это сообщение
было добавлено в версии 6.7.0.) В
/home/ahtx685ppwd3/public_html/wp-includes/functions.php On Line 6121.
, но я могу решить это? Все еще не разрешен.public function __construct() {
$this->creote_get_function();
add_action('init', [$this, 'i18n']);
add_action('wp_enqueue_scripts', [$this,'creote_enqueue_scripts']);
$this->creote_add_functions_extra();
add_filter( 'init', array( $this, 'enable_elementor_posttype_supports' ));
add_action('admin_enqueue_scripts', array($this,'creote_cat_meta_postbox_css'));
$this->update_theme_plugin();
$this->section_variable = '453453453534534534'; //
$post_types = array(
'service',
'project',
'post',
'header',
'footer',
);
foreach ($post_types as $post_type) {
add_filter('manage_' . $post_type . '_posts_columns', [ $this, 'creote_id_custom_columns']);
add_action('manage_' . $post_type . '_posts_custom_column', [ $this, 'creote_id_custom_column_data'], 10, 2);
}
}
< /code>
public function i18n() {
load_theme_textdomain( 'creote-addons', get_template_directory() . '/lang' );
}
< /code>
public function creote_add_functions_extra(){
require_once CREOTE_ADDONS_DIR . 'inc/ajax-view-product.php';
if(!class_exists('Redux')) {
require_once CREOTE_ADDONS_DIR . 'redux-framework/redux-framework.php';
}
if (!function_exists('is_plugin_active')) {
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
}
// Make theme available for translation.
load_theme_textdomain( 'creote', get_template_directory() . '/lang' );
require_once CREOTE_ADDONS_DIR . 'inc/plugins/plugins.php';
require_once CREOTE_ADDONS_DIR . 'inc/widgets/widgets.php';
require_once CREOTE_ADDONS_DIR . 'inc/functions/function.php';
require_once CREOTE_ADDONS_DIR . '/update.php';
//require_once CREOTE_ADDONS_DIR . 'inc/theme-panel/theme-panel.php';
add_action('elementor/editor/before_enqueue_scripts', function() {
wp_enqueue_style('creote-widgets-icon', get_template_directory_uri() . '/assets/css/icomoon.css', array() , '1.0.0', 'all');
wp_enqueue_style('creote-widgets-css', CREOTE_ADDONS_URL . '/assets/css/elementor-creote.css', array() , '1.0.0', 'all');
wp_enqueue_style('creote-widgets-icon-two', 'https://cdnjs.cloudflare.com/ajax/libs/ ... wesome.css', false);
});
// Elementor
require_once CREOTE_ADDONS_DIR . 'inc/elementor-code.php';
// vc composer not in folder
if(is_plugin_active('js_composer/js_composer.php')){
require_once CREOTE_ADDONS_DIR . 'inc/shortcode.php';
}
require_once CREOTE_ADDONS_DIR . 'inc/Performance/Performance.php';
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... ncorrectly
Функция _load_textdomain_just_in_time была вызвана неправильно [закрыто] ⇐ Php
Кемеровские программисты php общаются здесь
1748554919
Anonymous
Я получаю ошибку: < /p>
function _load_textdomain_just_in_time была вызвана неправильно.
Перевод нагрузку для домена Themename была запущена слишком рано. Переводы должны быть загружены на действие init или
позже. Пожалуйста, смотрите отладку в WordPress для получения дополнительной информации. (Это сообщение
было добавлено в версии 6.7.0.) В
/home/ahtx685ppwd3/public_html/wp-includes/functions.php On Line 6121.
, но я могу решить это? Все еще не разрешен.public function __construct() {
$this->creote_get_function();
add_action('init', [$this, 'i18n']);
add_action('wp_enqueue_scripts', [$this,'creote_enqueue_scripts']);
$this->creote_add_functions_extra();
add_filter( 'init', array( $this, 'enable_elementor_posttype_supports' ));
add_action('admin_enqueue_scripts', array($this,'creote_cat_meta_postbox_css'));
$this->update_theme_plugin();
$this->section_variable = '453453453534534534'; //
$post_types = array(
'service',
'project',
'post',
'header',
'footer',
);
foreach ($post_types as $post_type) {
add_filter('manage_' . $post_type . '_posts_columns', [ $this, 'creote_id_custom_columns']);
add_action('manage_' . $post_type . '_posts_custom_column', [ $this, 'creote_id_custom_column_data'], 10, 2);
}
}
< /code>
public function i18n() {
load_theme_textdomain( 'creote-addons', get_template_directory() . '/lang' );
}
< /code>
public function creote_add_functions_extra(){
require_once CREOTE_ADDONS_DIR . 'inc/ajax-view-product.php';
if(!class_exists('Redux')) {
require_once CREOTE_ADDONS_DIR . 'redux-framework/redux-framework.php';
}
if (!function_exists('is_plugin_active')) {
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
}
// Make theme available for translation.
load_theme_textdomain( 'creote', get_template_directory() . '/lang' );
require_once CREOTE_ADDONS_DIR . 'inc/plugins/plugins.php';
require_once CREOTE_ADDONS_DIR . 'inc/widgets/widgets.php';
require_once CREOTE_ADDONS_DIR . 'inc/functions/function.php';
require_once CREOTE_ADDONS_DIR . '/update.php';
//require_once CREOTE_ADDONS_DIR . 'inc/theme-panel/theme-panel.php';
add_action('elementor/editor/before_enqueue_scripts', function() {
wp_enqueue_style('creote-widgets-icon', get_template_directory_uri() . '/assets/css/icomoon.css', array() , '1.0.0', 'all');
wp_enqueue_style('creote-widgets-css', CREOTE_ADDONS_URL . '/assets/css/elementor-creote.css', array() , '1.0.0', 'all');
wp_enqueue_style('creote-widgets-icon-two', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css', false);
});
// Elementor
require_once CREOTE_ADDONS_DIR . 'inc/elementor-code.php';
// vc composer not in folder
if(is_plugin_active('js_composer/js_composer.php')){
require_once CREOTE_ADDONS_DIR . 'inc/shortcode.php';
}
require_once CREOTE_ADDONS_DIR . 'inc/Performance/Performance.php';
}
Подробнее здесь: [url]https://stackoverflow.com/questions/79636544/function-load-textdomain-just-in-time-was-called-incorrectly[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия