Tribe__Settings_Manager::set_options( array $options, bool $apply_filters = true )

Saves the options for the plugin


Parameters

$options

(array) (Required) formatted the same as from get_options()

$apply_filters

(bool) (Optional)

Default value: true


Top ↑

Return

(bool)


Top ↑

Source

File: src/Tribe/Settings_Manager.php

	public static function set_options( $options, $apply_filters = true ) {
		if ( ! is_array( $options ) ) {
			return false;
		}
		if ( $apply_filters == true ) {
			$options = apply_filters( 'tribe-events-save-options', $options );
		}
		return update_option( Tribe__Main::OPTIONNAME, $options );
	}