Helper::get_embed_options( array $_options = array() )
Get the global embedding options.
Description
Will return the options set in Vimeotheque Settings page.
Parameters
- $_options
-
(Optional) Array of options that will override the options set by the user.
Default value: array()
Return
(array) The array of options.
Source
File: includes/libs/helper.class.php
public static function get_embed_options( array $_options = [] ){ $embed_options = Plugin::instance()->get_embed_options(); if( $_options ){ foreach( $_options as $k => $v ){ if( isset( $_options[ $k ] ) ){ $embed_options[ $k ] = $_options[ $k ]; } } } return $embed_options; }