Skip to content

Instantly share code, notes, and snippets.

View arfinmilondev's full-sized avatar
🎯
Focusing

R A Milon arfinmilondev

🎯
Focusing
View GitHub Profile
@arfinmilondev
arfinmilondev / overlay_background.css
Created January 29, 2026 05:53
left right blurry overlay background effect
.blur-banner.overlay_background:after, .blur-banner.overlay_background:before {
content: '';
position: absolute;
top: 0;
height: 100%;
width: 15%;
z-index: 2;
}
.blur-banner.overlay_background:before {
@arfinmilondev
arfinmilondev / Custom_animation_styles.css
Created January 29, 2026 05:27
CUSTOM ANIMATION STYLES FOR DEVELOPER
/* =========================================================
GLOBAL ANIMATION BASE
========================================================= */
/* animation class */
.animated {
animation-duration: 0.6s;
animation-fill-mode: both;
animation-timing-function: ease-in-out;
will-change: transform, opacity;
}
@arfinmilondev
arfinmilondev / Icon_list_custom_styles.css
Created January 29, 2026 05:03
Elementor Icon list custom styles
/* Use this to create a underline effect for Elementor Icon List */
li a .elementor-icon-list-text:before {
background: currentColor;
content: "";
bottom: 0px;
right: 0;
position: absolute;
height: 1px;
width: 0%;
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@arfinmilondev
arfinmilondev / custom_edd_login_redirect.php
Created July 1, 2025 05:46
Redirect affiliate users to the Affiliate area page when login through EDD Login form
<?php
//if the user is an affiliate. Based on that, you can redirect them either to the Affiliate Area or the EDD Customer Dashboard.
if ( ! function_exists( 'custom_edd_login_redirect' ) ) {
function custom_edd_login_redirect( $redirect_to, $user_id ) {
if ( function_exists( 'affwp_is_affiliate' ) && affwp_is_affiliate( $user_id ) ) {
return site_url( '/affiliate-area/' );
}
return $redirect_to;
}
@arfinmilondev
arfinmilondev / deleteCustomers.sql
Last active May 29, 2025 06:20
Remove user which has customer user role from database SQL code
DELETE u, um
FROM wp_users u
LEFT JOIN wp_usermeta um ON um.user_id = u.ID
WHERE u.ID IN (
SELECT user_id
FROM (
SELECT user_id
FROM wp_usermeta
WHERE meta_key = 'wp_capabilities'
AND meta_value LIKE '%customer%'
@arfinmilondev
arfinmilondev / add_to_cart_button_text.php
Created May 19, 2025 09:28
Change woocommerce add to cart text
<?php
/**
-----------------------------------------------------------------------------
Change woocommerce add to cart text
-----------------------------------------------------------------------------
*/
add_filter( 'woocommerce_product_single_add_to_cart_text' , 'woo_custom_cart_button_text' );
@arfinmilondev
arfinmilondev / woocommerce_ajax_variation_threshold.php
Created May 5, 2025 06:54
Increase the default number limit of variations for a product in WooCommerce
<?php
add_filter( 'woocommerce_ajax_variation_threshold', function(){
return 100;
});
// Add this code to your function.php file
add_filter( 'woocommerce_ajax_variation_threshold', function( $quantity, $product ) {
return 50;
@arfinmilondev
arfinmilondev / NewCustomField.php
Created March 26, 2025 05:07
Add New Custom Field in Woo Commerce Checkout Fields
<?php
// Add New Custom Field
add_action( 'woocommerce_before_order_notes', 'wtwh_add_custom_checkout_field' );
function wtwh_add_custom_checkout_field( $checkout ) {
$current_user = wp_get_current_user();
$saved_car_no = $current_user->car_no;
woocommerce_form_field( 'car_no', array(
'type' => 'text',
'class' => array( 'form-row-wide' ),
@arfinmilondev
arfinmilondev / reset_permalinks.php
Created March 23, 2025 06:23
Set permalink to post after theme activated in WordPress