Hello @beamkiller,
There’s already an open GitHub report about this although it doesn’t seem like a bug or anything.
Can you please check the strategies suggested in the comment below?
https://github.com/woocommerce/woocommerce/issues/26029
Let us know how it goes.
I think its a different kind of issue.
I have managed to solve the issue by disabling admin features with this snippet.
Now these 3 loads does not happen.
// Remove WooCommerce Marketing Hub & Analytics Menu from the sidebar - for WooCommerce v4.3+
add_filter( 'woocommerce_admin_features', function( $features ) {
/**
* Filter the list of features and get rid of the features not needed.
*
* array_values() are being used to ensure that the filtered array returned by array_filter()
* does not preserve the keys of initial $features array. As key preservation is a default feature
* of array_filter().
*/
return array_values(
array_filter( $features, function($feature) {
return ! in_array( $feature, [ 'marketing', /* 'analytics', 'analytics-dashboard', 'analytics-dashboard/customizable', */ 'onboarding','activity-panels', 'shipping-label-banner', 'store-alerts', 'wcpay', 'homescreen' ] );
} )
);
} );
Hi,
Glad to hear that you have figured this out. If you would like to share your experience with the community, feel free to leave a review.
Best.