// 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
// 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
// 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
// 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
// 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
add_filter( ‘woocommerce_order_number’, function( $order_id, $order ) { return ‘NIK-‘ . $order_id; }, 9999, 2 );Continue reading
add_filter(‘perfmatters_delay_js_timeout’, function($timeout) { return ‘3’; });Continue reading
/** // * 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
// Need to work on the photo gallery uploades, currently not saving to the ACT ‘vendor_gallery’ postmeta field. // Also, need a frontend image gallery option. Everything else working as expected 🙂 // Step 1: Add Gallery and Video Repeater…Continue reading
// Description: // This script is designed to integrate a Gravity Forms Repeater field with a custom WordPress post type (‘vendor’), focusing on managing Frequently Asked Questions (FAQs) as a repeating group. It provides a solution for collecting, pre-populating, and…Continue reading