How To Allow Shop Managers To Edit Wholesale Users

/** * Allow Shop Managers to edit and promote wholesale users. */ function wws_add_shop_manager_user_editing_capability() { $shop_manager = get_role(‘shop_manager’); if ( ! $shop_manager ) { return; } // Only add capabilities if they don’t already exist if ( ! $shop_manager->has_cap(‘edit_users’) )…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 Legacy CSS

add_filter( ‘show_recent_comments_widget_style’, ‘__return_false’ ); add_filter( ‘use_default_gallery_style’, ‘__return_false’ );Continue reading