trendwerk / events
Events for WordPress.
Installs: 336
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 2
Type:wordpress-muplugin
pkg:composer/trendwerk/events
Requires
- php: >=5.4
- composer/installers: ~1
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.phpsingle-events.php
Meta
There is some additional post meta available for use in your templates:
_startStart date + time (UNIX timestamp)_endEnd 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', '' );