protected function validated_atts( $atts ) {

		if ( ! $this->hasConfigKey( 'atts' ) ) {
			return $atts;
		}

		$atts_config = $this->getConfigKey( 'atts' );
		array_walk( $atts_config,
			function ( $att_properties, $att_label ) use ( &$atts ) {
				if ( array_key_exists( $att_label, $atts ) ) {
					$validate_function  = $att_properties['validate'];
					$atts[ $att_label ] = $validate_function( $atts[ $att_label ] );
				}
			}
		);

		return $atts;
	}
protected function validated_atts( $atts ) {

		if ( ! $this->hasConfigKey( 'atts' ) ) {
			return $atts;
		}

		$atts_config = $this->getConfigKey( 'atts' );
		array_walk( $atts_config,
			function ( $att_properties, $att_label ) use ( &$atts ) {
				if ( array_key_exists( $att_label, $atts ) ) {
					$validate_function  = $att_properties['validate'];
					$atts[ $att_label ] = $validate_function( $atts[ $att_label ] );
				}
			}
		);

		return $atts;
	}
protected function validated_atts ( $ atts ) { if ( ! $ this -> hasConfigKey ( 'atts' ) ) { return $ atts ; } $ atts_config = $ this -> getConfigKey ( 'atts' ) ; array_walk ( $ atts_config , function ( $ att_properties , $ att_label ) use ( & $ atts ) { if ( array_key_exists ( $ att_label , $ atts ) ) { $ validate_function = $ att_properties [ 'validate' ] ; $ atts [ $ att_label ] = $ validate_function ( $ atts [ $ att_label ] ) ; } } ) ; return $ atts ; }
Return an array of validated attributes checked against the
configuration array.

@since 0.1.0

@param array $atts Attributes that were passed to the shortcode.
@return array Validated attributes.
Return an array of validated attributes checked against the configuration array .