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
add_filter( ‘show_recent_comments_widget_style’, ‘__return_false’ ); add_filter( ‘use_default_gallery_style’, ‘__return_false’ );Continue reading
add_filter( ‘login_display_language_dropdown’, ‘__return_false’ );Continue reading
add_action( ‘after_setup_theme’, function() { remove_theme_support( ‘core-block-patterns’ ); });Continue reading
add_action( ‘current_screen’, function () { $screen = get_current_screen(); // Add other custom post types here as needed. if ( in_array( $screen->id, array( ‘post’, ‘page’ ) ) ) { remove_theme_support( ‘block-templates’ ); } } );Continue reading
remove_action(‘wp_head’, ‘wp_shortlink_wp_head’ );Continue reading
add_action( ‘admin_head’, function () { if ( current_user_can( ‘update_core’ ) ) { return; } remove_action( ‘admin_notices’, ‘update_nag’, 3 ); }, 1 );Continue reading
remove_action(‘wp_head’, ‘wlwmanifest_link’);Continue reading
$u_time = get_the_time( ‘U’ ); $u_modified_time = get_the_modified_time( ‘U’ ); // Only display modified date if 24hrs have passed since the post was published. if ( $u_modified_time >= $u_time + 86400 ) { $updated_date = get_the_modified_time( ‘F jS, Y’ );…Continue reading