Title: olehellhound's Replies | WordPress.org

---

# olehellhound

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Update Status Timeout](https://wordpress.org/support/topic/update-status-timeout/)
 *  Thread Starter [olehellhound](https://wordpress.org/support/users/olehellhound/)
 * (@olehellhound)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/update-status-timeout/#post-4344312)
 * Alrighty folks, it turns out that the emails for “Completed Orders” was causing
   the script to hang because I noticed the WooCommerce Orders page doing the same
   exact thing. I disabled email notices for Completed Orders and the script runs
   instantly.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Update Status Timeout](https://wordpress.org/support/topic/update-status-timeout/)
 *  Thread Starter [olehellhound](https://wordpress.org/support/users/olehellhound/)
 * (@olehellhound)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/update-status-timeout/#post-4344308)
 * Update:
 * I removed all that code and replaced my “Complete Order” link href to this variable:
 * `$sg_url = wp_nonce_url( admin_url( 'admin-ajax.php?action=woocommerce-mark-order-
   complete&order_id=' . $the_order["orderid"] ), 'woocommerce-mark-order-complete');`
 * The same thing happened though. When I click the complete button in my plugin
   the script takes 60 seconds to execute but when I click the complete button from
   the WooCommerce orders page it will process instantly.
 * Thanks again for any assistance.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Toolbar Roles](https://wordpress.org/support/topic/toolbar-roles/)
 *  Thread Starter [olehellhound](https://wordpress.org/support/users/olehellhound/)
 * (@olehellhound)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/toolbar-roles/#post-3855277)
 * User error, I was programming way too late last night. My above posted code correctly
   adds a menu item to the admin bar for subscribers.
 * I was developing in my dev server and testing the feature on my production server
   instead of my dev server for some reason. That’s what 3am programming does to
   you.
 * Thanks for your help, the current_user_can() function will allow me to use the
   roles that I will be creating for determining if a certain “subscriber”, or field
   rep, has access to certain forms or not.

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