Location: everywhere
Hide Campaign Meta (Author, Date, Comments)
ByUs – Global snippets
add_shortcode(‘current-year’, function() { return date(‘Y’); });Continue reading
Single product – Show size description
add_action( ‘woocommerce_before_single_variation’, function() { if ( ! is_product() ) return; global $product; if ( ! $product ) return; $field_name = ‘uitleg_maten’; // ACF field name $taxonomy = ‘pa_merk’; // jouw attribute taxonomy $terms = taxonomy_exists( $taxonomy ) ? wp_get_post_terms( $product->get_id(),…Continue reading
Disable Login Screen Language Switcher
add_filter( ‘login_display_language_dropdown’, ‘__return_false’ );Continue reading
Disable Pattern Directory
add_action( ‘after_setup_theme’, function() { remove_theme_support( ‘core-block-patterns’ ); });Continue reading
Disable the WordPress Shortlink
remove_action(‘wp_head’, ‘wp_shortlink_wp_head’ );Continue reading
Disable wlwmanifest link
remove_action(‘wp_head’, ‘wlwmanifest_link’);Continue reading
Enable Shortcode Execution in Text Widgets
add_filter( ‘widget_text’, ‘do_shortcode’ );Continue reading
Extend Login Expiration Time
add_filter( ‘auth_cookie_expiration’, function () { return 30 * DAY_IN_SECONDS; // 30 days in seconds. } );Continue reading