// 420 Cannabis Radio – SILVER Plan All-In-One Application Shortcode
add_shortcode('420_silver_application', function () {
// Handle form submit
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['silver_submit'])) {
$to = '420cannabisradio@gmail.com';
$subject = 'New SILVER Promotion Application – 420 Cannabis Radio';
$business_name = sanitize_text_field($_POST['business_name'] ?? '');
$contact_name = sanitize_text_field($_POST['contact_name'] ?? '');
$email = sanitize_email($_POST['email'] ?? '');
$phone = sanitize_text_field($_POST['phone'] ?? '');
$address = sanitize_text_field($_POST['address'] ?? '');
$website = sanitize_text_field($_POST['website'] ?? '');
$promo_message = sanitize_textarea_field($_POST['promo_message'] ?? '');
$zelle_name = sanitize_text_field($_POST['zelle_name'] ?? '');
$zelle_status = sanitize_text_field($_POST['zelle_status'] ?? '');
// Basic required fields
if (!$business_name || !$contact_name || !$email || !$phone || !$address || !$promo_message || !$zelle_name || !$zelle_status) {
echo "
❌ Please fill out all required fields and submit again.
";
} else {
$body = "SILVER DISPENSARY BUSINESS PROMOTION APPLICATION\n";
$body .= "Package: Silver ($575)\n\n";
$body .= "Business Name: {$business_name}\n";
$body .= "Contact Name: {$contact_name}\n";
$body .= "Email: {$email}\n";
$body .= "Phone: {$phone}\n";
$body .= "Address: {$address}\n";
$body .= "Website/Menu Link: {$website}\n\n";
$body .= "Promo Message / Offer:\n{$promo_message}\n\n";
$body .= "Zelle Sender Name: {$zelle_name}\n";
$body .= "Zelle Payment Status: {$zelle_status}\n";
wp_mail($to, $subject, $body);
echo "
✅ Silver application submitted! If payment wasn’t sent yet, please complete Zelle payment using the guide below.
";
}
}
// You can replace the QR image path with your Media Library URL
// Best practice: upload QR to Media Library and paste the direct URL below.
$qr_url = "/wp-content/uploads/420_Zelle_QR_702-720-6852.png";
ob_start(); ?>
Silver Dispensary Business Promotion
Package Price: $575
Includes: Directory Listing • 4 Radio Promos/Month • Daily Radio Air Play • Site-to-Site Link • Cross-Network Promotion • 4 Daily Posts
📄 Application
Submissions route to 420cannabisradio@gmail.com for recordkeeping.