diff options
-rw-r--r-- | librevideojs-html5-player.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/librevideojs-html5-player.php b/librevideojs-html5-player.php index b3536b8..f59f6e2 100644 --- a/librevideojs-html5-player.php +++ b/librevideojs-html5-player.php @@ -27,6 +27,20 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) { $this->plugin_includes(); } + function the_content_video( $more_link_text = null, $strip_teaser = false) { + $content_video = get_the_content( $more_link_text, $strip_teaser ); + /** + * Filtrando contenido del video. + * + * @since 0.71 + * + * @param string $content_video Content of the current post. + */ + $content_video = apply_filters( 'the_content', $content_video ); + $content_video = str_replace( ']]>', ']]>', $content_video ); + echo $content_video; + } + function plugin_includes() { if (is_admin()) { add_filter('plugin_action_links', array($this, 'plugin_action_links'), 10, 2); @@ -40,6 +54,7 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) { add_filter('widget_text', 'do_shortcode'); add_filter('the_excerpt', 'do_shortcode', 11); add_filter('the_content', 'do_shortcode', 11); + add_filter('the_content_video', 'do_shortcode', 11);//llamando the_content_video } function plugin_url() { @@ -75,7 +90,6 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) { </div> <?php } - } $GLOBALS['easy_video_player'] = new LIBREVIDEOJS_HTML5_PLAYER(); |