Product_Date_Modified extends Abstract_Product_Data

Gets data for the date modified column.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

$links  : mixed
$parent_product  : mixed
$product  : mixed
$date_format  : string
The date format string.
__construct()  : mixed
Constructor.
get_data()  : string
Get the modified date for this product, formatted accordingly.
get_filter_data()  : mixed
get_sort_data()  : int
Get the modified date for the sort data, so the column can be sorted correctly.
format_term_data()  : mixed
get_parent_product()  : mixed
get_parent_product_id()  : mixed
get_product_attribute()  : mixed
get_product_id()  : mixed
get_product_taxonomy_terms()  : mixed
get_separator()  : mixed
maybe_strip_shortcodes()  : mixed

Properties

Methods

__construct()

Constructor.

public __construct(WC_Product $product, string $date_format) : mixed
Parameters
$product : WC_Product

The product object.

$date_format : string

The date format (PHP date/time format string).

Tags
Return values
mixed

get_data()

Get the modified date for this product, formatted accordingly.

public get_data() : string
Tags
Return values
string

The modified date.

get_sort_data()

Get the modified date for the sort data, so the column can be sorted correctly.

public get_sort_data() : int
Tags
Return values
int

The number of seconds since the epoch.

format_term_data()

protected static format_term_data(WP_Term $term[, mixed $show_links = false ][, mixed $column = null ]) : mixed
Parameters
$term : WP_Term
$show_links : mixed = false
$column : mixed = null
Tags
Return values
mixed

get_parent_product_id()

protected get_parent_product_id() : mixed
Tags
Return values
mixed

get_product_attribute()

protected static get_product_attribute(mixed $attribute, mixed $attributes) : mixed
Parameters
$attribute : mixed
$attributes : mixed
Tags
Return values
mixed

get_product_taxonomy_terms()

protected get_product_taxonomy_terms(mixed $column) : mixed
Parameters
$column : mixed
Tags
Return values
mixed

get_separator()

protected static get_separator(mixed $item_type) : mixed
Parameters
$item_type : mixed
Tags
Return values
mixed

maybe_strip_shortcodes()

protected static maybe_strip_shortcodes(mixed $text[, mixed $process_shortcodes = false ]) : mixed
Parameters
$text : mixed
$process_shortcodes : mixed = false
Tags
Return values
mixed

Search results