Data_Factory

Factory class to get the posts table data object for a given column.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

$args  : Table_Args
__construct()  : mixed
create()  : Table_Data_Interface
Creates the data object for the given column.

Properties

Methods

create()

Creates the data object for the given column.

public create(string $column, WP_Post $post) : Table_Data_Interface
Parameters
$column : string

The column to create the data object for.

$post : WP_Post

The post to retrieve data from.

Tags
Return values
Table_Data_Interface

The data object.

Search results