Skip to content

Commit

Permalink
Added inline docs for #231.
Browse files Browse the repository at this point in the history
  • Loading branch information
slimndap committed Feb 7, 2017
1 parent 2a589a7 commit 9ebcf5a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions functions/wpt_event.php
Expand Up @@ -223,6 +223,15 @@ function datetime_html( $filters = array() ) {
return $html;
}

/**
* Gets the duration of an event.
*
* @since 0.?
* @since 0.15.16 Fixed call to apply_template_filters(). '$this->' was missing.
* See: https://github.com/slimndap/wp-theatre/pull/231
* @param array $args (default: array())
* @return string
*/
function duration( $args = array() ) {
global $wp_theatre;

Expand Down

0 comments on commit 9ebcf5a

Please sign in to comment.