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'


Top ↑

Return Return

(bool)


Top ↑

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;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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