Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Admin_Table::is_col_visible( [type] $data, string $context = 'display' )
Determine if a column is visible based on the current context.
Parameters Parameters
- $data
-
([type]) (Required) array of a single column's data from set_columns()
- $context
-
(string) (Optional) context [display|export]
Default value: 'display'
Return Return
(bool)
Source Source
File: includes/abstracts/abstract.llms.admin.table.php
private function is_col_visible( $data, $context = 'display' ) { // Display if 'export_only' does not exist or it does exist and is false. if ( 'display' === $context ) { return ( ! isset( $data['export_only'] ) || ! $data['export_only'] ); // Display if exportable is set and is true. } elseif ( 'export' === $context ) { return ( isset( $data['exportable'] ) && $data['exportable'] ); } return true; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.15.0 | Introduced. |