sdwareham
Forum Replies Created
-
Forum: Plugins
In reply to: [Helpful] PHP error when using fwrite()@pixelbart the latest update fixed this, thank you for the quick response!
Forum: Plugins
In reply to: [Account Engagement] Continuous auth check breaking widgets / settings pageThanks Cliff, clearing the cache appears to have helped! Plugin looks to be working as normal again. Really appreciate the support! Thanks!
Forum: Plugins
In reply to: [Account Engagement] Continuous auth check breaking widgets / settings pageHi @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 isDaily 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
In reply to: [Account Engagement] Continuous auth check breaking widgets / settings pageFollow 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
In reply to: [Optimizely X] Removing the action that injects the script in the headOK, I think I got it.
remove_action( 'wp_head', array( Optimizely_X\Frontend::instance(), 'inject_script'), - 1000 );
appears to work.
Forum: Plugins
In reply to: [Optimizely X] Removing the action that injects the script in the headI 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
In reply to: [Account Engagement] Can I filter all forms added by this pluginThanks @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
In reply to: Filter output of the_widget()Thanks @bcworkz and @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!