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

Nital Legacy User Password Check

add_filter(‘check_password’, function($check, $password, $hash, $user_id) { if ( !$check ) { //se il check standard non è andato a buon fine verifichiamo la password legacy $user_salt = get_user_meta( $user_id, ‘nlup_salt’, true ); if ( $user_salt ) { $check = hash_equals($hash,…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