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->dependency = isset( $value['dependency'] ) ? $value['dependency'] : ''; } /** * HTML Output of the field * * @since 4.0 */ public function render() { $class = ! is_array( $this->value ) ? ' hidden' : ''; if ( ! is_array( $this->value ) ) { $this->value = array( 'url' => '', 'id' => '', ); } ob_start(); ?>