Version 4.2.9 : unable to get options
-
Since the 4.2.9 (and fix of fix of…), I do not succeed in loading the values
define('TS_IMMO_SETTINGS', 'tsimmo_settings'); $args = array( 'display_name' => __('Configuration de la passerelle Ts-Immo', 'ts-immo'), 'display_version' => TS_IMMO_VERSION, 'menu_title' => esc_html__('Passerelle Ts-Immo', 'ts-immo'), 'menu_type' => 'submenu', 'allow_sub_menu' => true, 'page_title' => __('Configuration de la passerelle Ts-Immo', 'ts-immo'), 'footer_text' => __(sprintf('Passerelle Ts-Immo <strong>v.%s</strong> - Produit sous Licence - Expire dans <strong>%s jour(s)</strong>', TS_IMMO_VERSION, $exp), 'ts-immo'), 'admin_bar' => true, 'admin_bar_icon' => 'dashicons-admin-multisite', 'admin_bar_priority' => 50, 'global_variable' => TS_IMMO_SETTINGS, 'dev_mode' => false, 'display_version' => TS_IMMO_VERSION, 'update_notice' => true, 'customizer' => true, 'page_priority' => null, 'page_parent' => 'options-general.php', 'page_permissions' => 'edit_posts', 'menu_icon' => 'https://www.ts-immo.org/wp-content/uploads/2020/03/Ts-Immo-Logo-large.png', 'last_tab' => '', 'page_icon' => 'icon-themes', 'page_slug' => 'tsimmooptions', 'save_defaults' => true, 'default_show' => false, 'default_mark' => '', 'show_import_export' => true ); Redux::setArgs(TS_IMMO_SETTINGS, $args);
I load the code above within an init hook (I add fields after that).
After that, always in the init action (but after that loading), I have an empty value in $tsimmo_settings
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Version 4.2.9 : unable to get options’ is closed to new replies.