定制 kaiseki/wp-plugin-the-events-calendar 二次开发

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

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

kaiseki/wp-plugin-the-events-calendar

Composer 安装命令:

composer require kaiseki/wp-plugin-the-events-calendar

包简介

WordPress helpers for The Events Calendar plugin: event/venue/organizer entity utilities, default-template and option filters

README 文档

README

WordPress helpers for The Events Calendar plugin: event/venue/organizer entity utilities, default-template and option filters.

Provides small read helpers around the plugin's data (Event, Venue, Organizer, Schedule) plus hook providers — wired through ConfigProvider and the the_events_calendar config key — to set the default event template, override plugin options, and optionally disable front-end block rendering.

Installation

composer require kaiseki/wp-plugin-the-events-calendar

Requires PHP 8.2 or newer. Expects The Events Calendar plugin to be active at runtime.

Usage

Register ConfigProvider with your laminas-style config aggregator and configure the the_events_calendar key, activating the providers you want via kaiseki/wp-hook:

use Kaiseki\WordPress\TheEventsCalendar\DefaultTemplate;
use Kaiseki\WordPress\TheEventsCalendar\DisableBlockRenderingInFrontend;
use Kaiseki\WordPress\TheEventsCalendar\FilterOptions;

return [
    'the_events_calendar' => [
        'default_template' => ['type' => 'default'],
        'disable_block_rendering' => true,
        // Overrides applied to tribe_get_single_option().
        'options' => [
            'ticket-enabled-post-types' => ['tribe_events'],
        ],
    ],
    'hook' => [
        'provider' => [
            DefaultTemplate::class,
            DisableBlockRenderingInFrontend::class,
            FilterOptions::class,
        ],
    ],
];

The EntityUtils\Event / Venue / Organizer helpers wrap the plugin's tribe_* lookups (cost, iCal/Google links, past-event check, …) behind a typed API for use in templates.

Development

composer install
composer check   # check-deps, cs-check, phpstan

License

MIT — see LICENSE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固