Rest_Store_Settings::register_routes()


Source

File: includes/libs/rest-api/endpoints/plugin/rest-store-settings.class.php

	public function register_routes() {
		register_rest_route(
			parent::get_namespace(),
			parent::get_rest_base(),
			[
				'methods' => \WP_REST_Server::CREATABLE,
				'callback' => [$this, 'get_response'],
				'permission_callback' => function(){
					return current_user_can( 'manage_options' );
				},
				'args' => [

				]
			]
		);
	}

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!