PluginProbe
Infinite Uploads – Offload, Optimize & Organize Your Media Library / trunk
Infinite Uploads – Offload, Optimize & Organize Your Media Library vtrunk
3.3.4 3.3.3 3.3.2 3.3.1 3.3.0 3.2.6 3.2.5 3.2.4 3.2.3 trunk 1.0 1.0.1 1.0.2 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 2.0 2.0.1 2.0.10 2.0.2 2.0.4 All 48 releases
infinite-uploads / functions.php

functions.php in Infinite Uploads – Offload, Optimize & Organize Your Media Library trunk, at functions.php

20 lines 740 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Public wrapper for {@see InfiniteUploadsVideo::get_videos()} — thin
5 * template-tag entry point so themes can query cloud-hosted videos without
6 * touching the class directly. Lazy-loads the class file on first call.
7 *
8 * @param array $params Passed through to InfiniteUploadsVideo::get_videos().
9 *
10 * @return mixed Whatever InfiniteUploadsVideo::get_videos() returns.
11 */
12 function infinite_uploads_get_videos( $params = [] ) {
13 if ( ! class_exists( '\ClikIT\InfiniteUploads\InfiniteUploadsVideo' ) ) {
14 require_once dirname( __FILE__ ) . '/inc/InfiniteUploadsVideo.php';
15 }
16
17 $iup_videos_instance = \ClikIT\InfiniteUploads\InfiniteUploadsVideo::get_instance();
18
19 return $iup_videos_instance->get_videos( $params );
20 }