Я включил режим DEBUG, но в журналах не отображаются сообщения об ошибках. Единственным признаком проблемы является заголовок «Ошибка WordPress» в браузере.
Страница результатов;

Вот некоторые подробности о том, что я реализовал:
- Структура и поля формы
- Как я обрабатываю отправку формы
- Любые соответствующие фрагменты кода
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
class StoreSettingsPage {
private $onsale;
public function __construct()
{
add_action( 'admin_menu', array( $this, 'wootemasi_store_settings_page' ) );
add_action( 'admin_init', array( $this, 'store_init' ) );
add_action('admin_post_save_wootemasi_onsale_settings', array($this, 'save_settings'));
}
public function wootemasi_store_settings_page() {
add_submenu_page(
'wootemasi-settings',
__('Toplu Ürün Yönetimi', 'wootemasi'),
__('Ürün Yönetimi', 'wootemasi'),
'manage_options',
'wootemasi-store-settings',
array($this, 'wootemasi_store_page')
);
}
public function wootemasi_store_page() {
// Check required user capability
if ( !current_user_can( 'manage_options' ) ) {
wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'wootemasi' ) );
}
// Güncelleme işlemine ait bildirim
if (isset($_GET['updated']) && $_GET['updated'] == 'true') {
add_settings_error('wootemasi_messages', 'wootemasi_message', __('İndirim başarıyla uygulandı.', 'wootemasi'), 'updated');
}
// Set class property
$this->onsale = get_option( 'wootemasi_onsale_settings' );
?>
">
">
">
.bsinternet_custom_page select,
.w100 {width: 100% !important;}
Подробнее здесь: https://stackoverflow.com/questions/790 ... lication-w