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

Retrieve data for the columns


Description Description


Parameters Parameters

$key

(string) (Required) the column id / key

$user_id

(int) (Required) WP User ID


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.





Permalink: