Title: alesflex's Replies | WordPress.org

---

# alesflex

  [  ](https://wordpress.org/support/users/alesflex/)

 *   [Profile](https://wordpress.org/support/users/alesflex/)
 *   [Topics Started](https://wordpress.org/support/users/alesflex/topics/)
 *   [Replies Created](https://wordpress.org/support/users/alesflex/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/alesflex/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/alesflex/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/alesflex/engagements/)
 *   [Favorites](https://wordpress.org/support/users/alesflex/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Matomo Analytics - Powerful, Privacy-First Insights for WordPress] Why classes/WpMatomo/User/Sync.php::sync_users synchronise all user](https://wordpress.org/support/topic/why-classes-wpmatomo-user-sync-phpsync_users-synchronise-all-user/)
 *  Thread Starter [alesflex](https://wordpress.org/support/users/alesflex/)
 * (@alesflex)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/why-classes-wpmatomo-user-sync-phpsync_users-synchronise-all-user/#post-18940669)
 * Hi, I disabled the hooks before processing the CSV and perform a one-time sync_current_users()
   at the end.
   It’s obviously much faster than before.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Matomo Analytics - Powerful, Privacy-First Insights for WordPress] Why classes/WpMatomo/User/Sync.php::sync_users synchronise all user](https://wordpress.org/support/topic/why-classes-wpmatomo-user-sync-phpsync_users-synchronise-all-user/)
 *  Thread Starter [alesflex](https://wordpress.org/support/users/alesflex/)
 * (@alesflex)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/why-classes-wpmatomo-user-sync-phpsync_users-synchronise-all-user/#post-18939467)
 * Thank you,
   I had planned to remove the actions at the beginning of my CSV processing
   and add them back at the end, then run a single user synchronization.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Switching] capabilities edit_users vs edit_user](https://wordpress.org/support/topic/capabilities-edit_users-vs-edit_user/)
 *  Thread Starter [alesflex](https://wordpress.org/support/users/alesflex/)
 * (@alesflex)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/capabilities-edit_users-vs-edit_user/#post-18368293)
 * it’s because the action=switch_to_user not charge backend.php
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Switching] capabilities edit_users vs edit_user](https://wordpress.org/support/topic/capabilities-edit_users-vs-edit_user/)
 *  Thread Starter [alesflex](https://wordpress.org/support/users/alesflex/)
 * (@alesflex)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/capabilities-edit_users-vs-edit_user/#post-18368265)
 * i found the problem
 * woocomerce add cap do_not_allow to the role
 *     ```wp-block-code
       if ( property_exists( $userdata, 'roles' ) && ! empty( $userdata->roles ) && ! array_intersect( $userdata->roles, $shop_manager_editable_roles ) ) {							$caps[] = 'do_not_allow';						}
       ```
   
 * Because in backend.php i add restaurant to editable role
 *     ```wp-block-code
       /* Lets Shop Managers edit users with these user roles */function wws_allow_shop_manager_role_edit_capabilities( $roles ) {    $roles[] = 'restaurant'; // insert the wholesale role here, copy+paste this line for additional user roles    return $roles;}add_filter( 'woocommerce_shop_manager_editable_roles', 'wws_allow_shop_manager_role_edit_capabilities' );
       ```
   
 * if i add it in function.php the role it’s editable and switchable
    -  This reply was modified 1 year, 4 months ago by [alesflex](https://wordpress.org/support/users/alesflex/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Load More – Infinite Scroll, Load More, & Lazy Load] Get request too long](https://wordpress.org/support/topic/get-request-too-long/)
 *  Thread Starter [alesflex](https://wordpress.org/support/users/alesflex/)
 * (@alesflex)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/get-request-too-long/#post-15414218)
 * BBQ protects your site against many threats:
    Excessively long requests
 * I suppose that it’s the problem
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Load More – Infinite Scroll, Load More, & Lazy Load] Get request too long](https://wordpress.org/support/topic/get-request-too-long/)
 *  Thread Starter [alesflex](https://wordpress.org/support/users/alesflex/)
 * (@alesflex)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/get-request-too-long/#post-15414204)
 * Fixed desactived BBQ Firewall.

Viewing 6 replies - 1 through 6 (of 6 total)