/** * Print video code. * * ## OPTIONS * * <id> * * YouTube id. * * ## EXAMPLES * * wp mbinfo-video info --id=7RrrIBHAbXE * * @synopsis [--id] */ function info($args, $assoc_args) { $video = new MBInfoVideo(); $content = $args[0]; $html = $video->parse_short_code($assoc_args, $content); echo $html; }
function mbinfo_video($attr, $content) { $pinfo = new MBInfoVideo(); return $pinfo->parse_short_code($attr, $content); }