Columns
Admin Columns Class.
Namespace: WebberZone\WFP\Admin
Since: 3.1.0
Source: includes/admin/class-columns.php line 24
Methods
__construct()
Constructor class.
Since: 3.1.0
Line: 31
public function __construct( );
add_columns() static
Add an extra column to the All Posts page to display the page views.
Line: 46
static public function add_columns( $cols ): string[];
| Type | Name | Description |
|---|---|---|
string[] | $cols | Array of all columns on posts page. |
Returns: string[] — Modified array of columns.
wherego_value() static
Display page views for each column.
Since: 3.1.0
Line: 62
static public function wherego_value( $column_name, $id );
| Type | Name | Description |
|---|---|---|
string | $column_name | Name of the column. |
int|string | $id | Post ID. |