Element_Type::get_export_column_choices_yes_no( awsmug\Torro_Forms\DB_Objects\Elements\Element $element )

Gets the two strings indicating ‘Yes’ and ‘No’ in an export column.

Description

By default, these are simply localized ‘Yes’ and ‘No’.

See also

Parameters

$element

(awsmug\Torro_Forms\DB_Objects\Elements\Element) (Required) Element for which to use the strings.

Return

(array) Array with two elements where the first value is the 'Yes' string and the second is the 'No' string.

Source

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

	protected function get_export_column_choices_yes_no( $element ) {
		$yes_no = array(
			__( 'Yes', 'torro-forms' ),
			__( 'No', 'torro-forms' ),
		);

		/**
		 * Filters the two strings to use for choice export columns indicating whether the choice was included in the submission or not.
		 *
		 * By default, the strings are a localized 'Yes' and 'No'.
		 *
		 * @since 1.0.0
		 *
		 * @param array        $yes_no        Array with two elements where the first value is the 'Yes' string and the second value
		 *                                    is the 'No' string.
		 * @param Element_Type $element_type  Current element type.
		 * @param Element      $element       Current element.
		 */
		return apply_filters( "{$this->manager->get_prefix()}export_column_choices_yes_no", $yes_no, $this, $element );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.