LLMS_Admin_Table::filter_get_data( mixed $value, string $key, mixed $data, string $context = 'display' )
Ensures that all data requested by $this->get_data is filterable before being output on screen / in the export file.
Parameters Parameters
- $value
-
(mixed) (Required) Value to be displayed.
- $key
-
(string) (Required) Column key/ID.
- $data
-
(mixed) (Required) Original data object/array.
- $context
-
(string) (Optional) Display context [display|export].
Default value: 'display'
Return Return
(mixed)
Source Source
File: includes/abstracts/abstract.llms.admin.table.php
protected function filter_get_data( $value, $key, $data, $context = 'display' ) {
/**
* Filters the table data.
*
* The dynamic portion of this filter `{$this->id}` refers to the unique ID for the table.
*
* @since 3.2.0
*
* @param mixed $value Value to be displayed.
* @param string $key Column key/ID.
* @param mixed $data Original data object/array.
* @param string $context Display context [display|export].
* @param LLMS_Admin_Table $table_object Instance of the class extending `LLMS_Admin_Table`.
*/
return apply_filters( "llms_table_get_data_{$this->id}", $value, $key, $data, $context, $this );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.2.0 | |
| 3.17.6 | Introduced. |