Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Admin_Settings::get_array_field_posted_value( string $id )

Retrieves the posted value for an array type setting field.

Parameters Parameters


(string) (Required) The field ID, eg: "my_setting[field_one]".

Top ↑

Return Return

(string) Returns the (sanitized) posted value or an empty string if it wasn't posted.

Top ↑

Source Source

File: includes/admin/class.llms.admin.settings.php

	private static function get_array_field_posted_value( $id ) {

		parse_str( $id, $parsed_id );
		$opt_id  = key( $parsed_id );
		$opt_key = key( $parsed_id[ $opt_id ] );
		$posted  = llms_filter_input_sanitize_string( INPUT_POST, $opt_id, array( FILTER_REQUIRE_ARRAY ) );

		return $posted[ $opt_key ] ?? '';


Top ↑

Changelog Changelog

Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.