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!

'; } } else { echo '

Security check failed. Please try again.

'; } } $rubikChatId = get_option( 'rubik_chat_id', '' ); ?>

Locate your Chatbot ID in the RubikChat dashboard under the Settings tab.
esc_attr( $rubik_chat_id ), 'domain' => 'widget.rubikchat.com', ] ); }