document.addEventListener("DOMContentLoaded", function() { const menuItemIcon = document.querySelector("#toplevel_page_rubik-chat .wp-menu-image"); if (menuItemIcon) { menuItemIcon.innerHTML = ``; } }); '; } function rubik_chat_settings() { if ( isset( $_POST['rubik_chat_nonce'] ) ) { $nonce = sanitize_text_field( wp_unslash( $_POST['rubik_chat_nonce'] ) ); if ( wp_verify_nonce( $nonce, 'rubik_chat_nonce_action' ) ) { if ( isset( $_POST['rubik_chat_id'] ) ) { $inputValue = sanitize_text_field( wp_unslash( $_POST['rubik_chat_id'] ) ); update_option( 'rubik_chat_id', $inputValue ); echo '
Settings saved!
Security check failed. Please try again.