Hi all,
found it.
In /wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php is function “prevent_admin_access”. Here the docblock:
COPY CODE
/**
* Prevent any user who cannot 'edit_posts' (subscribers, customers etc) from accessing admin.
*/
Within class-wc-admin.php constructor, the action is added:
COPY CODE
public function __construct() {
...
add_action( 'admin_init', array( $this, 'prevent_admin_access' ) );
}
So from here it’s easy to remove the action and add an own action.
Best regards.