It is very complicated to see if the editor is from wp or inside woocommerce.
Is there any way to distinguish where or when you want the button to show up and when not; like user role or something else, so i could create a setting switch?
btw: are we talking about the oldstyle editor or the gutenberg blockeditor?
woocommerce use oldstyle editor.
create a setting switch with user role is my mean.
Because in many cases it may be a multi-user mall, this is indeed a more complicated setup, but it is also very practical
Will be implemented in the next version.
A multi selectionbox with all available roles, if the user has a role that permits it, it will be available. Default: all roles.
Fixed 8.3.03
From the changelog:
New setting: Advanced settings -> System -> I -> Item 48: Show shortcode generators. Multi selectionbox for userroles that will see the shortcode hgenerator buttons in editors.