Skip to content

Commit

Permalink
Ready for v0.10!
Browse files Browse the repository at this point in the history
  • Loading branch information
slimndap committed Dec 29, 2014
1 parent 64f5ce9 commit c0e3ee1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
3 changes: 2 additions & 1 deletion functions/wpt_events.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,10 +528,11 @@ function last() {
}

/**
* Get a list of events.
* Gets a list of events.
*
* @since 0.5
* @since 0.10 Renamed method from `load()` to `get()`.
* Added 'order' to $args.
*
* @return array Events.
*/
Expand Down
34 changes: 16 additions & 18 deletions functions/wpt_productions.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,30 +337,28 @@ public function get_seasons() {
}

/**
* Get all productions.
*
* Returns an array of all productions.
* Get a list of productions.
*
* Example:
*
* $productions = $wp_theatre->productions->load();
* @since 0.5
* @since 0.10 Renamed method from `load()` to `get()`.
* Added 'order' to $args.
*
* @param array $args {
* int $season. Only return productions that are linked to season.
* int $limit. See WP_Query.
* $post__in. See WP_Query.
* $post__not_in. See WP_Query.
* $cat. See WP_Query.
* $category_name. See WP_Query.
* category__and. See WP_Query.
* category__in. See WP_Query.
* category__not_in. See WP_Query.
* ignore_sticky_posts. See WP_Query.
* string $order. See WP_Query.
* int $season. Only return productions that are linked to $season.
* int $limit. See WP_Query.
* $post__in. See WP_Query.
* $post__not_in. See WP_Query.
* $cat. See WP_Query.
* $category_name. See WP_Query.
* category__and. See WP_Query.
* category__in. See WP_Query.
* category__not_in. See WP_Query.
* ignore_sticky_posts. See WP_Query.
* }
* @return mixed An array of WPT_Production objects.
* @return array An array of WPT_Production objects.
*/
public function get($filters=array()) {
global $wpdb;
global $wp_theatre;

$defaults = array(
Expand Down
15 changes: 15 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,21 @@ The new feature may be added directly to the Theater plugin or as an extension s

= 0.10 =

Release Date: December 29th, 2014

* Bugfixes
* Changed priority of some `save_post`-hooks to avoid conflicts with ACF's `save_post`-hooks. Thanks [paramir](https://github.com/paramir)!
* Fixed some PHP warnings.

* Enhancements
* Event listings can be paginated or grouped by year: `[wpt_events paginateby=year]` or `[wpt_events groupby=year]`.
* Better support for past events. You can now create historic event listings paginated or grouped by day, month, year or category.
* You can change the order of events and production in listings: `[wpt_events order=desc]` or `[wpt_productions order=desc]`.

* Experimental
* A new WPT_Importer class to easily create your own import for your ticketing system. Still a work in progress. Play with it, but don't use it on your production website. Always make backups!


= 0.9 =
* Added support for start and end dates in `[wpt_events]` shortcode. You can throw anything at it that strtotime understands! Some examples:
* `[wpt_events start="now"]`
Expand Down

0 comments on commit c0e3ee1

Please sign in to comment.