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.

Rest_Store_Settings::process_options( array $defaults, array $options, array $new_options )

Process options.


Parameters

$defaults

(Required) The default options.

$options

(Required) The existing options.

$new_options

(Required) The new options.


Return

(array) The processed options.


Source

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

103private function process_options( $defaults, $options, $new_options ){
104    foreach ( $defaults as $index => $value ) {
105        if( isset( $new_options[ $index ] ) ){
106            switch( gettype( $value ) ){
107                case 'boolean':
108                    $options[ $index ] = (bool) $new_options[ $index ];
109                break;
110                case 'integer':
111                    $options[ $index ] = (int) $new_options[ $index ];
112                break;
113                default:
114                    $options[ $index ] = trim( (string) $new_options[ $index ] );
115                break;
116            }
117        }
118    }
119 
120    return $options;
121}

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!