Class Theater_Item
Abstract Theater Item class.
Methods summary
public
|
#
__construct( integer|WP_Post $ID = false, $template = '' )
Sets the ID and template of this item.
Sets the ID and template of this item.
Parameters
- $ID
- ID of post object or post object of this item.
- $template
Since
0.16
Uses
Theater_Item::$ID to set the ID of this item.
Theater_Item::$template to set the template for the HTML output of this item.
|
protected
string
|
#
apply_template_filters( string $value, WPT_Template_Placeholder_Filter[] $filters )
Applies template filters to a field value string.
Applies template filters to a field value string.
Parameters
- $value
- The value.
- $filters
- The template filters.
Returns
string The filtered value.
Since
0.16
|
public
mixed
|
#
get_field( string $name )
Gets the value for a field.
Gets the value for a field.
Parameters
Returns
mixed
Since
0.16
Uses
|
public
string
|
#
get_field_html( string $name, array $filters = array() )
Gets the HTML output for a field.
Gets the HTML output for a field.
Parameters
- $name
- The field name.
- $filters
- (default: array())
Returns
string The HTML output for a field.
Since
0.16
Uses
|
abstract public
array
|
#
get_fields( )
Gets a list of of available fields for this item.
Gets a list of of available fields for this item.
Returns
array
Since
0.16
Used by
|
abstract public
string
|
#
get_html( )
Gets the HTML output of this item.
Gets the HTML output of this item.
Returns
string The HTML output of this item.
Since
0.16
|
public
string
|
#
get_name( )
Gets the name of this item.
Gets the name of this item.
Returns
string
Since
0.16
Uses
Theater_Item::$name to get the name of this item.
|
public
string
|
#
get_post_type( )
Get the post type of this item.
Get the post type of this item.
Returns
string
Since
0.16
Uses
Theater_Item::$post_type_name to get the post type of this item.
Used by
|
public
boolean
|
#
has_field( string $name )
Checks if this item has a certain field.
Checks if this item has a certain field.
Parameters
Returns
boolean
Since
0.16
Uses
|
Properties summary
public
integer
|
$ID
ID of this item.
Since
0.16
Used by
|
|