定制 trendwerk/events 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

trendwerk/events

最新稳定版本:1.0.4

Composer 安装命令:

composer require trendwerk/events

包简介

Events for WordPress.

README 文档

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', '' );

统计信息

  • 总下载量: 336
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2015-03-27