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_Metabox_Repeater_Field::get_sub_field( $field, $index )
Get repeater sub field html output
Return Return
(string)
Source Source
File: includes/admin/post-types/meta-boxes/fields/llms.class.meta.box.repeater.php
private function get_sub_field( $field, $index ) { $field['id'] .= '_' . $index; if ( isset( $field['controller'] ) ) { $field['controller'] .= '_' . $index; } $name = ucfirst( strtr( preg_replace_callback( '/(\w+)/', function( $m ) { return ucfirst( $m[1] ); }, $field['type'] ), '-', '_' ) ); $field_class_name = str_replace( '{TOKEN}', $name, 'LLMS_Metabox_{TOKEN}_Field' ); $field_class = new $field_class_name( $field ); ob_start(); $field_class->output(); return ob_get_clean(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.11.0 | Introduced. |