Support » Plugin: WP YouTube Lyte » Allow target=”_blank”

  • Resolved Philhippos

    (@philhippos)


    It would be nice if you would allow target=”_blank” in the Text to be added under every LYTE video.

Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    hey @philhippos;
    You can use LYTE’s API to enforce that with a couple of lines of code, something like this;

    
    add_filter('lyte_match_postparse_template','add_blank');
    function add_blank($template) {
    	return str_replace('">on YouTube</a>','" target="_blank">on YouTube</a>',$template);
    }

    hope this helps,
    frank

Viewing 1 replies (of 1 total)
  • The topic ‘Allow target=”_blank”’ is closed to new replies.