src/core/class-papi-core-box.php
protected function setup_args( array $args ) {
		$excluded_keys = ['options', 'properties'];

		foreach ( $args as $key => $value ) {
			if ( isset( $this->$key ) && ! in_array( $key, $excluded_keys, true ) ) {
				$this->$key = papi_esc_html( $value );
			}
		}

		if ( empty( $this->id ) ) {
			$this->id = papi_slugify( strtolower( papi_f( papi_underscorify( papify( $this->title ) ) ) ) );
			$this->id = sanitize_text_field( $this->id );
		}
	}
protected function setup_args( array $args ) {
		$excluded_keys = ['options', 'properties'];

		foreach ( $args as $key => $value ) {
			if ( isset( $this->$key ) && ! in_array( $key, $excluded_keys, true ) ) {
				$this->$key = papi_esc_html( $value );
			}
		}

		if ( empty( $this->id ) ) {
			$this->id = papi_slugify( strtolower( papi_f( papi_underscorify( papify( $this->title ) ) ) ) );
			$this->id = sanitize_text_field( $this->id );
		}
	}
Setup arguments.

@param  array $args