[IG] iOS Double-Click required to open lightbox fix
function sbcustom_disable_firsttouch( $flags, $settings ) { $flags[] = ‘disableOnTouch’; return $flags; } add_filter( ‘sbi_flags’, ‘sbcustom_disable_firsttouch’, 10, 2 );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function sbcustom_disable_firsttouch( $flags, $settings ) { $flags[] = ‘disableOnTouch’; return $flags; } add_filter( ‘sbi_flags’, ‘sbcustom_disable_firsttouch’, 10, 2 );Continue reading
add_filter( /** * Filter the autoresponder content * this can be used to add custom shortcodes * * @param $msg * @param $id * @param $payment * * @return string content for autoresponder */ ‘qem_autoresponder-message-content’, function ( $msg, $id, $payment…Continue reading
/** * Set the valid range for the list view. */ add_filter( ‘wfea_cal_list_options’ , function( $options ) { $options[‘fullcalendar’][‘validRange’] = array( ‘start’ => date( ‘Y-m-d’, strtotime( ‘-5 months’ ) ), // 5 months ago ‘end’ => date( ‘Y-m-d’, strtotime( ‘+5…Continue reading
// Update values in post counter if ( jQuery( ‘.cwf-products-count’ ) && jQuery( ‘.cwf-products-count’ ).length ) { // TODO maybe found more suitable event in imagesLoaded? $us.$canvas.on( ‘resize’, function(){ // Make sure HTML was appended setTimeout(() => { jQuery( ‘.cwf-products-count’…Continue reading
/** * Unhook Checkout Autocomplete */ add_filter( ‘woocommerce_checkout_get_value’, ‘bks_remove_values’, 10, 2 ); function bks_remove_values( $value, $input ) { $item_to_set_null = array( ‘billing_first_name’, ‘billing_last_name’, ‘billing_company’, ‘billing_address_1’, ‘billing_address_2’, ‘billing_city’, ‘billing_postcode’, ‘billing_country’, ‘billing_state’, ‘billing_email’, ‘billing_phone’, ‘shipping_first_name’, ‘shipping_last_name’, ‘shipping_company’, ‘shipping_address_1’, ‘shipping_address_2’, ‘shipping_city’, ‘shipping_postcode’, ‘shipping_country’,…Continue reading
add_filter( ‘forminator_render_fields_markup’, function( $html, $wrappers ){ $replacements = array( ‘%my_value_1%’ => ”, ‘%my_value_2%’ => ”, ‘%my_value_3%’ => ”, ‘%my_value_4%’ => ”, ); if ( is_user_logged_in() ) { $current_user = wp_get_current_user(); $replacements = array( ‘%my_value_1%’ => get_user_meta( $current_user->ID, ‘field_1’, true ),…Continue reading
// Check if a user is logged in if (is_user_logged_in()) { // Get the current user’s information $current_user = wp_get_current_user(); // Get the user’s email address $user_email = $current_user->user_email; // Check if the email address is not empty if (!empty($user_email))…Continue reading
// Check if a user is logged in if (is_user_logged_in()) { // Get the current user’s information $current_user = wp_get_current_user(); // Get the first name and last name of the user $first_name = $current_user->first_name; $last_name = $current_user->last_name; // Check if…Continue reading
// Check if a user is logged in if (is_user_logged_in()) { // Get the current user’s information $current_user = wp_get_current_user(); // Get the last name of the user $last_name = $current_user->last_name; // Check if the last name is not empty…Continue reading