Plugin::instance()
Instance.
Description
Ensures only one instance of the plugin class is loaded or can be loaded.
Return
(\Vimeotheque\Plugin)
Source
File: includes/libs/plugin.class.php
public static function instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); /** * Triggered when Vimeotheque has loaded. * Fires when Vimeotheque was fully loaded and instantiated. * * @since 2.0 */ do_action( 'vimeotheque_loaded' ); } return self::$instance; }
Related
Uses
Uses | Description |
---|---|
includes/libs/plugin.class.php: Plugin::__construct() |
Class constructors – sets all filters and hooks |
includes/libs/plugin.class.php: vimeotheque_loaded |
Triggered when Vimeotheque has loaded. |
Used By
Used By | Description |
---|---|
includes/libs/templates/helper.class.php: Helper::is_video_taxonomy() |
Check if video taxonomy. |
includes/libs/templates/post-template.php: vimeotheque_the_entry_taxonomies() |
Prints HTML with category and tags for current post. |
includes/libs/templates/templates-init.class.php: Templates_Init::init() |
Initializes the entire functionality. |
includes/libs/templates/template-loader.class.php: Template_Loader::get_template_loader_files() | |
includes/libs/templates/template-loader.class.php: Template_Loader::get_template_default_file() |
Get the default filename for a template. |
includes/libs/templates/template-loader.class.php: Template_Loader::__construct() | |
includes/libs/helper.class.php: Helper::is_video() |
Check single video post. |
includes/libs/helper.class.php: Helper::video_is_visible() |
Checks if video embed is visible. |
includes/libs/helper.class.php: Helper::get_embed_options() |
Get the global embedding options. |
includes/libs/helper.class.php: Helper::calculate_player_width() |
Calculates player width based on the player height. |
includes/libs/helper.class.php: Helper::calculate_player_height() |
Calculate player height from given aspect ratio and width. |
includes/libs/helper.class.php: Helper::get_access_token() |
Return the access token for the Vimeo API. |
includes/libs/video-post.class.php: Video_Post::cpt() | |
includes/libs/video-post.class.php: Video_Post::get_embed_options() |
Returns embed options for the post. |
includes/libs/rest-api/rest-api.class.php: Rest_Api::register_rest_field() |
Register new Rest API fields |
includes/libs/rest-api/endpoints/plugin/rest-store-settings.class.php: Rest_Store_Settings::get_response() | |
includes/libs/posts-import.class.php: Posts_Import::import_video() |
Import a single video based on the passed data |
includes/libs/posts-import.class.php: Posts_Import::run_import() |
Imports videos from a given feed source. |
includes/libs/admin/page/setup-page.class.php: Setup_Page::on_load() | |
includes/libs/admin/page/setup-page.class.php: Setup_Page::get_html() | |
includes/libs/admin/page/settings-page.class.php: Settings_Page::player_options_obj() |
Get player options object |
includes/libs/admin/page/settings-page.class.php: Settings_Page::options_obj() |
Get plugin options object |
includes/libs/admin/page/settings-page.class.php: Settings_Page::update_settings() |
Utility function, updates plugin settings |
includes/libs/admin/editor/classic-editor.class.php: Classic_Editor::tinymce() |
Add filters to put tinymce plugin buttons on editor rich edit mode |
includes/libs/admin/editor/classic-editor.class.php: Classic_Editor::is_option_override() | |
includes/libs/admin/editor/classic-editor.class.php: Classic_Editor::shortcode_modal() |
Video/playlist embed shortcode modal window output |