From a276be702096d17876be3f0378b0fc732caa9d67 Mon Sep 17 00:00:00 2001 From: Heckyel Date: Thu, 22 Dec 2016 16:47:37 -0500 Subject: solucionado variable no existe --- librevideojs-html5-player.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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')) {