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
function remove_my_action() { remove_action(‘wp_head’, ‘et_add_viewport_meta’); } function dt_et_add_viewport_meta(){ echo ‘‘; } add_action( ‘init’, ‘remove_my_action’); add_action( ‘wp_head’, ‘dt_et_add_viewport_meta’ );Continue reading
function convert_to_webp($file) { $file_path = $file[‘file’]; $file_type = $file[‘type’]; // Only for JPEG, PNG, and GIF images if (in_array($file_type, [‘image/jpeg’, ‘image/png’, ‘image/gif’, ‘image/jpg’])) { $webp_path = preg_replace(‘/\.(jpe?g|png|gif)$/i’, ‘.webp’, $file_path); // Check if the GD library is available if (!function_exists(‘gd_info’)) {…Continue reading