Plugin::activation_hook()

Runs on plugin activation and registers rewrite rules for video custom post type


Return

(void)


Source

File: includes/libs/plugin.class.php

	public function activation_hook(){
		$this->set_post_type();
		// register custom post
		$this->get_cpt()->register_post();
		// create rewrite ( soft )
		flush_rewrite_rules( false );

		$this->add_admin();

		$wp_option = get_option( $this->get_options_obj()->get_option_name() );
		if( !$wp_option ){
			set_transient( 'vimeotheque_setup_activated' , time(), 30 );
		}
	}

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!