Returns the element mappings for a given form ID.
Description
See also
Parameters
- $form_id
-
(int) (Required) Form ID.
Return
(array) Multidimensional array, where the first level is <code>$element_id => $field_slugs</code> pairs and the second level is <code>$field_slug => $mapped_param</code> pairs.
Source
File: src/modules/actions/api-action.php
public final function get_mappings( $form_id ) { $mappings = $this->module->manager()->meta()->get( 'post', $form_id, $this->module->manager()->get_prefix() . $this->slug . '_mappings', true ); if ( is_array( $mappings ) ) { return $mappings; } return $mappings; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |