Title: sdwareham's Replies | WordPress.org

---

# sdwareham

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Helpful] PHP error when using fwrite()](https://wordpress.org/support/topic/php-error-when-using-fwrite/)
 *  Thread Starter [sdwareham](https://wordpress.org/support/users/sdwareham/)
 * (@sdwareham)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/php-error-when-using-fwrite/#post-15675108)
 * [@pixelbart](https://wordpress.org/support/users/pixelbart/) the latest update
   fixed this, thank you for the quick response!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Account Engagement] Continuous auth check breaking widgets / settings page](https://wordpress.org/support/topic/contiuous-auth-check-breaking-widgets-settings-page/)
 *  Thread Starter [sdwareham](https://wordpress.org/support/users/sdwareham/)
 * (@sdwareham)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/contiuous-auth-check-breaking-widgets-settings-page/#post-12961125)
 * Thanks Cliff, clearing the cache appears to have helped! Plugin looks to be working
   as normal again. Really appreciate the support! Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Account Engagement] Continuous auth check breaking widgets / settings page](https://wordpress.org/support/topic/contiuous-auth-check-breaking-widgets-settings-page/)
 *  Thread Starter [sdwareham](https://wordpress.org/support/users/sdwareham/)
 * (@sdwareham)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/contiuous-auth-check-breaking-widgets-settings-page/#post-12957864)
 * Hi [@cliffseal](https://wordpress.org/support/users/cliffseal/) I was behind 
   but I just bumped the version and getting the same result. Endless calls to authenticate
   that is breaking the widgets & plugin settings page.
 * I’m wondering if the problem lies here:
 * `if ( $this->authenticate( $auth ) && 'Daily API rate limit met.' !== $response-
   >err && 'This API user lacks sufficient permissions for the requested operation'!
   == $response->err )`
 * `Daily API rate lime met` is of type string, but $response->err is an object.
   Since it’s using the strict type comparison operator `!==` this will never be
   equal. Also, in the HTTP response the error text I’m getting is `Daily API rate
   limit met`. Which does not contain a period at the end of the message. Perhaps
   this was updated?
 * I’m wondering if this could be updated to `if ( $this->authenticate( $auth ) &&'
   Daily API rate limit met' !== strval( $response->err ) && 'This API user lacks
   sufficient permissions for the requested operation' !== strval($response->err))`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Account Engagement] Continuous auth check breaking widgets / settings page](https://wordpress.org/support/topic/contiuous-auth-check-breaking-widgets-settings-page/)
 *  Thread Starter [sdwareham](https://wordpress.org/support/users/sdwareham/)
 * (@sdwareham)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/contiuous-auth-check-breaking-widgets-settings-page/#post-12957559)
 * Follow up on this, I noticed in the HTTP response there is the error:
 * `<err code=\"122\">Daily API rate limit met<\/err>`
 * I’m not sure though if this is the cause of this, or if I’m hitting the limit
   because of the continuous auth checks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Optimizely X] Removing the action that injects the script in the head](https://wordpress.org/support/topic/removin-the-action-that-injects-the-script-in-the-head/)
 *  Thread Starter [sdwareham](https://wordpress.org/support/users/sdwareham/)
 * (@sdwareham)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/removin-the-action-that-injects-the-script-in-the-head/#post-12028820)
 * OK, I think I got it.
 * `remove_action( 'wp_head', array( Optimizely_X\Frontend::instance(), 'inject_script'),-
   1000 );`
 * appears to work.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Optimizely X] Removing the action that injects the script in the head](https://wordpress.org/support/topic/removin-the-action-that-injects-the-script-in-the-head/)
 *  Thread Starter [sdwareham](https://wordpress.org/support/users/sdwareham/)
 * (@sdwareham)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/removin-the-action-that-injects-the-script-in-the-head/#post-12028749)
 * I have also tried this which also doesn’t seem to work:
 * `remove_action( 'wp_head', array( 'Optimizely_X\Frontend::instance()', 'inject_script'),-
   1000 );`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Account Engagement] Can I filter all forms added by this plugin](https://wordpress.org/support/topic/can-i-filter-all-forms-added-by-this-plugin/)
 *  Thread Starter [sdwareham](https://wordpress.org/support/users/sdwareham/)
 * (@sdwareham)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/can-i-filter-all-forms-added-by-this-plugin/#post-11873058)
 * Thanks [@cliffseal](https://wordpress.org/support/users/cliffseal/)!
 * I found in the plugin it looks like there is a filter `pardot_widget_body_html`
   that looks to do what I was looking to do. Sorry, I didn’t explain my use-case
   very clearly. But that filter works perfectly, thanks!
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Filter output of the_widget()](https://wordpress.org/support/topic/filter-output-of-the_widget/)
 *  Thread Starter [sdwareham](https://wordpress.org/support/users/sdwareham/)
 * (@sdwareham)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/filter-output-of-the_widget/#post-11865622)
 * Thanks [@bcworkz](https://wordpress.org/support/users/bcworkz/) and [@joyously](https://wordpress.org/support/users/joyously/)!
   Essentially that is what I’m doing now, using the output buffer to adjust the
   widget output. I was just making sure there wasn’t an existing filter that might
   do this as well. As then I might be able to just call that filter once as opposed
   to using the output buffer each place that widget is called. Thanks for the feedback!

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