is_plugin_activated(); if (!$is_activated) { wp_redirect(admin_url('admin.php?page=presslearn-settings')); exit; } if (isset($_POST['presslearn_toggle_quick_button']) && isset($_POST['enable'])) { check_admin_referer('presslearn_toggle_quick_button_nonce'); if (current_user_can('manage_options')) { $enable = sanitize_text_field(wp_unslash($_POST['enable'])); if ($enable === 'yes' || $enable === 'no') { update_option('presslearn_quick_button_enabled', $enable); $updated = true; } } } if (current_user_can('manage_options') && is_admin() && isset($_GET['action']) && isset($_GET['enable']) && isset($_GET['feature'])) { if (!isset($_GET['_wpnonce']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_GET['_wpnonce'])), 'presslearn_toggle_quick_button_action')) { wp_die('보안 검증에 실패했습니다.'); } $action = sanitize_text_field(wp_unslash($_GET['action'])); $enable = sanitize_text_field(wp_unslash($_GET['enable'])); $feature = sanitize_text_field(wp_unslash($_GET['feature'])); if ($action === 'toggle' && $feature === 'quick_button' && ($enable === 'yes' || $enable === 'no')) { update_option('presslearn_quick_button_enabled', $enable); $updated = true; } } if (isset($_POST['save_quick_button_settings'])) { check_admin_referer('presslearn_save_quick_button_settings_nonce'); if (current_user_can('manage_options')) { $button_transition = isset($_POST['button_transition']) ? sanitize_text_field(wp_unslash($_POST['button_transition'])) : 'no'; if ($button_transition === 'yes' || $button_transition === 'no') { update_option('presslearn_button_transition_enabled', $button_transition); } $settings_updated = true; } } $quick_button_enabled = get_option('presslearn_quick_button_enabled', 'no'); $button_transition_enabled = get_option('presslearn_button_transition_enabled', 'no'); $saved_preset = get_option('presslearn_button_preset', array()); ?>

기능이 활성화 되었습니다.

기능이 비활성화 되었습니다.

대시보드 / 빠른 버튼 생성

설정 정보가 성공적으로 저장되었습니다.

빠른 버튼 생성

글 쓰기 화면에서 빠르게 버튼 생성 기능을 설정할 수 있습니다.

플러그인 기능 활성화

버튼 애니메이션 무한 반복

버튼 프리셋 초기화

저장된 프리셋이 없습니다.