trendwerk/events

Events for WordPress.

Installs: 333

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 2

Type:wordpress-muplugin

1.0.4 2016-08-05 14:52 UTC

This package is auto-updated.

Last update: 2024-03-26 19:04:47 UTC


README

Events for WordPress.

This plugin only delivers the most basic functionality for events. It doesn't contain any templates.

Installation

If you're using Composer to manage WordPress, add this plugin to your project's dependencies. Run:

composer require trendwerk/events

Templates

This plugin does not provide any templates. They have to be created in your theme. This works just like any other post type:

  • archive-events.php
  • single-events.php

Meta

There is some additional post meta available for use in your templates:

  • _start Start date + time (UNIX timestamp)
  • _end End date + time (UNIX timestamp)
  • _location
  • _address
  • _zipcode
  • _city
  • _cost

Past events

There's an endpoint available which contains past events. Default: events/archive.

Post type archive

Use get_post_type_archive_link, like with any other post type.

Get events archive slug

apply_filters( 'events_archive_slug', '' );

Hooks

Post type

apply_filters( 'events_post_type', $args );

$args contains all post type settings.

Archive slug

apply_filters( 'events_archive_slug', '' );