// 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(‘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
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
add_action( ‘template_redirect’, function() { if (is_404()) { wp_safe_redirect(home_url()); exit(); } } );Continue reading