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.
Return Return
(mixed)
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 );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.8.0 | Introduced. |