is_plugin_activated(); if (!$is_activated) { wp_redirect(admin_url('admin.php?page=presslearn-settings')); exit; } $current_tab = 'settings'; if (current_user_can('manage_options') && is_admin() && isset($_GET['tab'])) { $tab_value = sanitize_text_field(wp_unslash($_GET['tab'])); if (in_array($tab_value, array('settings', 'logs', 'manual'))) { $current_tab = $tab_value; } } if (isset($_POST['presslearn_toggle_auto_index']) && isset($_POST['enable'])) { check_admin_referer('presslearn_toggle_auto_index_nonce'); if (current_user_can('manage_options')) { $enable = sanitize_text_field(wp_unslash($_POST['enable'])); if ($enable === 'yes' || $enable === 'no') { update_option('presslearn_auto_index_enabled', $enable); $updated = true; } } } if (isset($_POST['save_auto_index_settings'])) { check_admin_referer('presslearn_save_auto_index_settings_nonce'); if (current_user_can('manage_options')) { if (isset($_POST['indexnow_api_key'])) { $api_key = sanitize_text_field(wp_unslash($_POST['indexnow_api_key'])); update_option('presslearn_indexnow_api_key', $api_key); if (!empty($api_key)) { $indexnow = presslearn_indexnow(); if ($indexnow->validate_api_key($api_key)) { $indexnow->create_api_key_file($api_key); } } } $auto_indexing_enabled = isset($_POST['auto_indexing_enabled']) ? 'yes' : 'no'; update_option('presslearn_auto_indexing_enabled', $auto_indexing_enabled); $index_post_types = isset($_POST['index_post_types']) && is_array($_POST['index_post_types']) ? array_map('sanitize_text_field', array_map('wp_unslash', $_POST['index_post_types'])) : array(); $valid_post_types = array(); $allowed_post_types = array('post', 'page'); foreach ($index_post_types as $post_type) { if (in_array($post_type, $allowed_post_types)) { $valid_post_types[] = $post_type; } } update_option('presslearn_index_post_types', $valid_post_types); $settings_updated = true; } } $auto_index_enabled = get_option('presslearn_auto_index_enabled', 'no'); $indexnow_api_key = get_option('presslearn_indexnow_api_key', ''); $auto_indexing_enabled = get_option('presslearn_auto_indexing_enabled', 'yes'); $index_post_types = get_option('presslearn_index_post_types', array('post', 'page')); $has_api_key = !empty($indexnow_api_key); ?>
기능이 활성화되었습니다.
기능이 비활성화 상태입니다.
설정 정보가 성공적으로 저장되었습니다.
자동 인덱싱 기능 설정이 변경되었습니다.
IndexNow API 키를 설정해야 인덱싱 기능을 사용할 수 있습니다.
IndexNow API 키 발급 받기
IndexNow 프로토콜을 사용하여 네이버에 자동으로 인덱싱 요청을 보내는 기능입니다.
인덱싱 요청 결과와 상태를 확인할 수 있습니다.
'' 검색 결과가 없습니다.
아직 인덱싱 로그가 없습니다.
| 게시글 | 요청 유형 | 응답 코드 | 응답 메시지 | 요청 시간 |
|---|---|---|---|---|
|
|
자동 수동 일괄 |
게시글을 수동으로 선택하여 인덱싱 요청을 보낼 수 있습니다. 인덱싱 상태는 가장 최근 요청 결과를 기준으로 표시됩니다.
수동 인덱싱을 사용하려면 먼저 IndexNow API 키를 설정해주세요.
인덱싱할 게시글이 없습니다.
max_num_pages > 1): ?>