Progressive Password Field
// Progressive Password Field / Kiri Vadivelu / 2026 add_action(‘login_enqueue_scripts’, ‘field_without_script’); function field_without_script() { echo ‘ ‘; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
// Progressive Password Field / Kiri Vadivelu / 2026 add_action(‘login_enqueue_scripts’, ‘field_without_script’); function field_without_script() { echo ‘ ‘; }Continue reading
// Disable User Login / Kiri Vadivelu / 2026 function disable_user_login( $user ) { if ( is_wp_error( $user ) ) { return $user; } if ( is_a( $user, ‘WP_User’ ) ) { $disabled_user_ids = array( 10 ); // User IDs…Continue reading
// Restrict WP Heartbeat / Kiri Vadivelu / 2026 add_action( ‘init’, function() { if ( ! is_admin() ) { wp_deregister_script( ‘heartbeat’ ); // Disable heartbeat in frontend } }); add_filter( ‘heartbeat_settings’, function( $settings ) { $settings[‘interval’] = 60; // Set…Continue reading
/** * DVA – Yoast handmatige canonicals veilig opschonen V2 * * Bevat: * – WordPress-pagina’s (page) * – WooCommerce-producten (product) * * Doet niets automatisch. * Na activeren: * Gereedschap > Yoast canonicals opschonen V2 */ add_action( ‘admin_menu’, function()…Continue reading
add_action( ‘admin_init’, function () { if ( ! isset( $_GET[‘opcache_status’] ) || ! current_user_can( ‘manage_options’ ) ) { return; } if ( ! function_exists( ‘opcache_get_status’ ) ) { wp_die( ‘OPcache extension not available.’ ); } $s = opcache_get_status( false );…Continue reading
if ( ! function_exists( ‘asj_is_editor_or_preview_request’ ) ) { /** * True for Elementor editor/preview, Gravity Forms preview, * WordPress/Customizer previews and admin requests. */ function asj_is_editor_or_preview_request() { if ( is_admin() || is_preview() || is_customize_preview() ) { return true; } //…Continue reading
/** * REMARK: * Verwijdert uitsluitend returnShippingFeesAmount uit het * Product-schema van WooCommerce en Yoast WooCommerce SEO. * * Dit veld is optioneel. Alle overige product-, verzend- * en retourgegevens blijven ongewijzigd. */ if ( ! function_exists( ‘dv_remove_return_shipping_fees_amount’ ) )…Continue reading
if (!defined(‘ABSPATH’)) { exit; } add_action(‘init’, function () { if (!function_exists(‘p3d_cart_item_price_currency’)) { return; } // Remove the original (unsafe) filter from the 3dprint plugin. remove_filter(‘woocommerce_cart_item_price’, ‘p3d_cart_item_price_currency’, 999); // Register our defensive replacement at the same priority/args. add_filter(‘woocommerce_cart_item_price’, ‘castimize_safe_cart_item_price_currency’, 999, 3);…Continue reading
/** * Give Yoast SEO default settings for Sugar Calendar recurring events, so the * Yoast SEO > Settings > Content Types > Recurring Events page loads instead of * showing “t.split is not a function”. * Edition: Sugar Calendar…Continue reading
/** * DVA – Elementor Theme Builder * WooCommerce categorie + alle subcategorieën + producten * * Plaatsing: * WooCommerce -> Categorie + subcategorieën + producten -> [hoofdcategorie] * * Werkt voor: * – gekozen WooCommerce-hoofdcategorie; * – alle onderliggende…Continue reading