LLMS_Table_NotificationSettings::get_data( string $key, array $data )

Retrieve data for the columns


Parameters Parameters

$key

(string) (Required) The column id / key.

$data

(array) (Required) Table data array.


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: includes/admin/settings/tables/class.llms.table.notification.settings.php

	public function get_data( $key, $data ) {

		switch ( $key ) {

			case 'configure':
				$links = array();
				foreach ( $data['configure'] as $type => $name ) {
					$url     = esc_url(
						add_query_arg(
							array(
								'notification' => $data['id'],
								'type'         => $type,
							)
						)
					);
					$links[] = '<a href="' . $url . '">' . $name . '</a>';
				}
				$value = implode( ', ', $links );
				break;

			default:
				$value = $data[ $key ];

		}

		return $this->filter_get_data( $value, $key, $data );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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