Class Theater
Main Theater for WordPress class.
With the Theater for WordPress plugin it is possible to manage and publish events that have one of more dates.
So if you run a theater then 'The Sound Of Music' is an event and the show this weekend is a date.
Getting started
Events
// Retrieve a list of all events. $events = new Theater_Event_List; foreach ( $events() as $event ) { // $event is a Theater_Event object. echo $event->title(); }
// Output a formatted list of all events. $events = new Theater_Event_List; echo $events;
See Theater_Event_List() for more examples.
Event dates
// Retrieve a list of all event dates. $dates = new Theater_Event_Date_List; foreach ( $dates() as $date ) { // $date is a Theater_Event_Date object. echo $date->title(); }
// Output a formatted list of all dates. $dates = new Theater_Event_Date_List; echo $dates;
See Theater_Event_Date_List() for more examples.
Extending Theater for WordPress
You can safely add extra functionality by using the theater/loaded
action hook:
function theater_example_loader() { // Add your custom code below... } add_action( 'theater/loaded', 'theater_example_loader' );
See this Example Extension for a full example.
Package: Theater
Copyright: 2016 Slim & Dapper
License: GNU General Public License
Author: Jeroen Schmit jeroen@slimndap.com
Version: 0.16
Located at theater.php
Copyright: 2016 Slim & Dapper
License: GNU General Public License
Author: Jeroen Schmit jeroen@slimndap.com
Version: 0.16
Located at theater.php
Methods summary
public
|
|
public
|