p =& $plugin; if ( $this->p->debug->enabled ) { $this->p->debug->mark(); } /* * Filter priorities: * * 10 = Youtube Videos. * 20 = Vimeo Videos. * 30 = Wistia Videos. * 40 = Slideshare Presentations. * 60 = Facebook Videos. * 80 = Soundcloud Tracks. * 100 = WP Media Library Video Blocks. * 110 = WP Media Library Video Shortcodes. * 1000 = Gravatar Images. */ $this->p->util->add_plugin_filters( $this, array( 'content_videos' => 3, ), $prio = 100 ); } public function filter_content_videos( $videos, $content, $mod ) { if ( $this->p->debug->enabled ) { $this->p->debug->mark(); } /* * Example video block: * *
* * * *
Big bunny caption.
* *
* */ if ( preg_match_all( '/