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
- $id
-
(string) (Required) The field ID, eg: "my_setting[field_one]".
Return Return
(string) Returns the (sanitized) posted value or an empty string if it wasn't posted.
Source Source
File: includes/admin/class.llms.admin.settings.php
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 ] ?? ''; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Introduced. |