WPFront_Notification_Bar->write_markup is breaking front-end AJAX.
-
Hey Syam,
Our plugin uses front-end AJAX as it needs to work in the front-end environment and doesn’t need all of the wp-admin overhead. The issue we’re having with your plugin is that it’s adding a shutdown action to render the markup which breaks our JSON response.
To fix this, you can add the following to your write_markup method…
if ( defined( 'DOING_AJAX' ) ) { return; }
Would you mind doing that so our users can continue to use these two plugins together?
Thanks for your help!
Justin
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WPFront_Notification_Bar->write_markup is breaking front-end AJAX.’ is closed to new replies.