LLMS_Metabox_Repeater_Field::__construct( array $_field )

Class constructor


Description Description


Parameters Parameters

$_field

(array) (Required) Array containing information about field


Top ↑

Source Source

File: includes/admin/post-types/meta-boxes/fields/llms.class.meta.box.repeater.php

	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;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.11.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.