Smart Slider 3 conflict and code improvement suggestion
-
Hi @hinjiriyo,
I’m the developer of Smart Slider 3. We use ob_start function like you do in your plugin. I started to collection usage of output buffering examples in different plugins and it seems like you use different method. Here you can check my collection: https://github.com/nextend/wp-ob-plugins-themes/blob/master/README.mdAs you can see all of the popular plugins use template_redirect action to start their output buffers. Using template_include instead will result plugin conflict with other plugins.
The suggestion: you should change the template_include filter in class-speed-contact-bar.php
add_filter( 'template_include', array( $this, 'activate_buffer' ), 1 );
To:
add_action( 'template_redirect', array( $this, 'activate_buffer' ), 1 );And you can change the activate_buffer function to:
public function activate_buffer( ) { // activate output buffer ob_start(); }Thanks in advance,
Roland
The topic ‘Smart Slider 3 conflict and code improvement suggestion’ is closed to new replies.