Data_Source extends Abstract_Data_Source
Data source for Posts Table Pro.
Configures the dataviews-engine for posts with PTP-specific settings.
Tags
Table of Contents
- __construct() : mixed
- Constructor.
- get_default_args() : array<string|int, mixed>
- Get default arguments merged with plugin settings.
- is_column_sortable() : bool
- Check if a column is sortable for posts.
Methods
__construct()
Constructor.
public
__construct() : mixed
Tags
Return values
mixed —get_default_args()
Get default arguments merged with plugin settings.
public
get_default_args(array<string|int, mixed> $defaults) : array<string|int, mixed>
Parameters
- $defaults : array<string|int, mixed>
-
The base default arguments.
Tags
Return values
array<string|int, mixed> —Modified default arguments with plugin settings.
is_column_sortable()
Check if a column is sortable for posts.
public
is_column_sortable(string $column, bool $default) : bool
Parameters
- $column : string
-
The column identifier.
- $default : bool
-
The default sortability.
Tags
Return values
bool —True if sortable.