field = $value['type']; $this->name = $value['name']; $this->id = $value['id']; $this->default = isset( $value['default'] ) ? $value['default'] : ''; $this->value = isset( $value['value'] ) ? $value['value'] : ''; $this->description = isset( $value['desc'] ) ? $value['desc'] : ''; $this->options = isset( $value['options'] ) ? $value['options'] : ''; $this->dependency = isset( $value['dependency'] ) ? $value['dependency'] : ''; } /** * HTML output of the field * * @since 1.0.0 */ public function render() { ob_start(); ?>
dependency ); ?>>
name ); ?> description ) { ?> icons->get_svg( 'info' ); // phpcs:ignore ?>
options ) && ! empty( $this->options ) ) { foreach ( $this->options as $key => $value ) { ?>
value ); ?>>