classes/PodsComponents.php
public function options( $component, $options ) {

		if ( ! isset( $this->settings['components'][ $component ] ) || ! is_array( $this->settings['components'][ $component ] ) ) {
			$this->settings['components'][ $component ] = array();
		}

		foreach ( $options as $option => $data ) {
			if ( ! isset( $this->settings['components'][ $component ][ $option ] ) && isset( $data['default'] ) ) {
				$this->settings['components'][ $component ][ $option ] = $data['default'];
			}
		}
	}
public function options( $component, $options ) {

		if ( ! isset( $this->settings['components'][ $component ] ) || ! is_array( $this->settings['components'][ $component ] ) ) {
			$this->settings['components'][ $component ] = array();
		}

		foreach ( $options as $option => $data ) {
			if ( ! isset( $this->settings['components'][ $component ][ $option ] ) && isset( $data['default'] ) ) {
				$this->settings['components'][ $component ][ $option ] = $data['default'];
			}
		}
	}
public function options ( $ component , $ options ) { if ( ! isset ( $ this -> settings [ 'components' ] [ $ component ] ) || ! is_array ( $ this -> settings [ 'components' ] [ $ component ] ) ) { $ this -> settings [ 'components' ] [ $ component ] = array ( ) ; } foreach ( $ options as $ option => $ data ) { if ( ! isset ( $ this -> settings [ 'components' ] [ $ component ] [ $ option ] ) && isset ( $ data [ 'default' ] ) ) { $ this -> settings [ 'components' ] [ $ component ] [ $ option ] = $ data [ 'default' ] ; } } }
Set component options

@param string $component Component name.
@param array  $options   Component options.

@since 2.0.0
Set component options