This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Plugin::set_plugin_options()

Set plugin options


Source

File: includes/libs/plugin.class.php

	private function set_plugin_options(){
		$defaults = [
			'public' => true, // post type is public or not
			'archives' => false, // display video embed on archive pages
			'post_slug'	=> 'vimeo-video',
			'taxonomy_slug' => 'vimeo-videos',
			'tag_slug' => 'vimeo-tag',
			'import_tags' => false, // import tags retrieved from Vimeo
			'max_tags' => 3, // how many tags to import
			'import_title' => true, // import titles on custom posts
			'import_description' => 'post_content', // import descriptions on custom posts
			'import_date' => false, // import video date as post date
			'featured_image' => false, // set thumbnail as featured image; default import on video feed import (takes more time)
			'import_status' => 'draft', // default import status of videos
			// Vimeo oAuth
			'vimeo_consumer_key' => '',
			'vimeo_secret_key' => '',
			'oauth_token' => '' // retrieved from Vimeo; gets set after entering valid client ID and client secret
		];

		/**
		 * Options filter.
		 *
		 * @param array $defaults Default options array.
		 */
		$defaults = apply_filters(
			'vimeotheque\options_default',
			$defaults
		);

		$this->options = Options_Factory::get( '_cvm_plugin_settings', $defaults );
	}

Start your video site now!

Manage and coordinate your Vimeo channels, albums or videos with your WordPress website. Perfect fit for membership, portfolio, online courses or any type of video collection.

Get Vimeotheque PRO!