Gets the slug for a submission value edit field.
Description
See also
Parameters
- $element_id
-
(int) (Required) Element ID the submission value is for.
- $element_field
-
(string) (Optional) Element field the submission value is for.
Default value: ''
Return
(string) Edit field slug.
Source
File: src/db-objects/elements/element-types/element-type.php
protected function get_edit_submission_field_slug( $element_id, $element_field = '' ) { $element_field = ! empty( $element_field ) ? $element_field : '_main'; return 'element_' . $element_id . '_' . $element_field . '_value'; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |