Support » Plugin: Responsive Lightbox & Gallery » The conflict with the popular plugin Shortcodes Ultimate

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter myrouble

    (@myrouble)

    Author of the plugin Shortcodes Ultimate found a solution

    function vanokhin_disable_rlightbox_where_su_boxes( $posts ) {
    	if (
    		empty( $posts )
    		|| ! function_exists( 'Responsive_Lightbox' )
    		|| ! function_exists( 'su_get_shortcode_prefix' )
    	) {
    		return $posts;
    	}
    	foreach ( $posts as $post ) {
    		if ( ! has_shortcode( $post->post_content, su_get_shortcode_prefix() . 'box' ) ) {
    			continue;
    		}
    		remove_filter( 'the_content', array( Responsive_Lightbox()->frontend, 'add_lightbox' ) );
    		break;
    	}
    	return $posts;
    }
    add_action( 'the_posts', 'vanokhin_disable_rlightbox_where_su_boxes' );

    So, you will find the problem faster, because he has already identified it.

    Plugin Author dFactory

    (@dfactory)

    This is not a solution but a workaround i think.
    But we’ll have that issue in mind.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The conflict with the popular plugin Shortcodes Ultimate’ is closed to new replies.