Element::get_element_settings( array $args = array() )

Returns all element settings that belong to the element.

Description

See also

Parameters

$args

(array) (Optional) Additional query arguments.

Default value: array()

Return

(awsmug\Torro_Forms\DB_Objects\Element_Settings\Element_Setting_Collection) List of element settings.

Source

File: src/db-objects/elements/element.php

	public function get_element_settings( $args = array() ) {
		if ( empty( $this->id ) ) {
			return $this->manager->get_child_manager( 'element_settings' )->get_collection( array(), 0, 'objects' );
		}

		$args = wp_parse_args( $args, array(
			'number'     => -1,
			'element_id' => $this->id,
		) );

		return $this->manager->get_child_manager( 'element_settings' )->query( $args );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.