— FILE: includes/class-bbb-admin.php —
BBB Master Settings
Shortcodes
Use [bbb_master_registration] to render the registration UI.
Webhooks
Stripe webhook endpoint:
prefix . ‘bbb_registrations’;
$charset_collate = $wpdb->get_charset_collate();
$sql = “CREATE TABLE $table (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
fullname VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
whatsapp VARCHAR(100) NOT NULL,
country VARCHAR(100) DEFAULT NULL,
referral VARCHAR(100) DEFAULT NULL,
tier VARCHAR(50) DEFAULT NULL,
provider VARCHAR(50) DEFAULT NULL,
provider_txref VARCHAR(255) DEFAULT NULL,
amount DECIMAL(10,2) DEFAULT 0,
currency VARCHAR(10) DEFAULT ‘MYR’,
status VARCHAR(50) DEFAULT ‘pending’,
meta LONGTEXT,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id)
) $charset_collate;”;
require_once(ABSPATH . ‘wp-admin/includes/upgrade.php’);
dbDelta($sql);
}public static function insert($data){
global $wpdb;
$table = $wpdb->prefix . ‘bbb_registrations’;
$wpdb->insert($table, $data);
return $wpdb->insert_id;
}
}— FILE: includes/class-bbb-email.php —