Submit Vendor and Venue Profile Claims on User Activation

// Description: // This script processes vendor and venue profile claims upon user activation in WordPress, leveraging Gravity Forms activation hooks. It normalizes business names for consistency, locates matching posts, updates claim metadata, and sends admin notifications. The script is…Continue reading

Vendor Claims Handling on User Activation in WordPress

// Description: // This script manages vendor profile claims within WordPress upon user activation, integrating Gravity Forms activation hooks and handling the normalization of business names for better matching. It adds functionality to normalize and find matching vendor posts by…Continue reading

Sumbit Vendor Profile Claim

// Function to normalize business names if (!function_exists(‘normalize_business_name’)) { function normalize_business_name($name) { $original_name = $name; // Save original name for logging if needed $name = strtolower($name); // Convert the string to lowercase to ensure uniformity $name = remove_accents($name); // Remove…Continue reading

Sumbit Vendor Profile Claim

// Function to normalize business names if (!function_exists(‘normalize_business_name’)) { function normalize_business_name($name) { $original_name = $name; // Save original name for logging if needed $name = strtolower($name); // Convert the string to lowercase to ensure uniformity $name = remove_accents($name); // Remove…Continue reading

Profile Claims Page

// Create ‘Vendor Claims’ admin page and subpages for approved and denied claims function vendor_claim_admin_menu() { add_menu_page( ‘Vendor Claims’, // Page title ‘Vendor Claims’, // Menu title ‘manage_options’, // Capability (Admin access only) ‘vendor-claims’, // Menu slug (used in the…Continue reading

Gravity Wiz: Update Post

/** // * Gravity Wiz // Gravity Forms // Update Posts // * https://gravitywiz.com/how-to-update-posts-with-gravity-forms/ // * // * Update existing post title, content, author and custom fields with values from Gravity Forms. // * // * @version 0.6 // *…Continue reading