Tribe__Promoter__Auth::register_setting()

Register the promoter auth key as part of the settings in order to make it available into the REST API.


Return

(void)


Top ↑

Source

File: src/Tribe/Promoter/Auth.php

	public function register_setting() {
		register_setting(
			'options',
			'tribe_promoter_auth_key',
			[
				'type'              => 'string',
				'show_in_rest'      => true,
				'description'       => __( 'Promoter Key', 'tribe-common' ),
				'sanitize_callback' => 'sanitize_text_field',
			]
		);
	}

Top ↑

Changelog

Changelog
Version Description
4.12.6 Introduced.