Hi,
Thanks for your code :) , There is just small fix
To enqueue the wp-delete-user-accounts-js file: u used array( 'jquery', 'sweetalert' ) but it should be array( 'jquery', 'sweetalert-js' ) like this:
wp_enqueue_script( 'wp-delete-user-accounts-js', WP_DELETE_USER_ACCOUNTS_PLUGIN_URL . 'assets/js/wp-delete-user-accounts.js', array( 'jquery', 'sweetalert-js' ), WP_DELETE_USER_ACCOUNTS_VERSION, true );
Hi, Thanks for your code :) , There is just small fix To enqueue the wp-delete-user-accounts-js file: u used array( 'jquery', 'sweetalert' ) but it should be array( 'jquery', 'sweetalert-js' ) like this:
wp_enqueue_script( 'wp-delete-user-accounts-js', WP_DELETE_USER_ACCOUNTS_PLUGIN_URL . 'assets/js/wp-delete-user-accounts.js', array( 'jquery', 'sweetalert-js' ), WP_DELETE_USER_ACCOUNTS_VERSION, true );