LLMS_Metabox_Repeater_Field::__construct( array $_field )
Class constructor
Parameters Parameters
- $_field
-
(array) (Required) Array containing information about field
Source Source
File: includes/admin/post-types/meta-boxes/fields/llms.class.meta.box.repeater.php
public function __construct( $_field ) {
$button_defaults = array(
'classes' => '', // Array or space separated string.
'icon' => 'dashicons-plus', // dashicon classname or HTML/String.
'id' => $_field['id'] . '-add-new',
'size' => 'small',
'style' => 'primary',
'text' => __( 'Add New', 'lifterlms' ),
);
if ( empty( $_field['button'] ) ) {
$_field['button'] = $button_defaults;
} else {
$_field['button'] = wp_parse_args( $_field['button'], $button_defaults );
}
$this->field = $_field;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.11.0 | Introduced. |