定制 vtrotot/conseil-municipal-post-type 二次开发

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

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

vtrotot/conseil-municipal-post-type

Composer 安装命令:

composer require vtrotot/conseil-municipal-post-type

包简介

Conseil Municipal Custom Post Type for WordPress Theme

README 文档

README

ConseilMunicipalPostType est un package permettant d'ajouter un Custom Post Type vt_cm à un theme WordPress.
Ce Custom Post Type ajoute six metadata : un ordre du jour (nom et lien du fichier PDF), un compte rendu (nom et lien du fichier PDF) et un compte rendu audio (nom et lien du fichier mp3).

La classe VincentTrotot\ConseilMunicipalPostType paramètre le Custom Post Type tandis que la classe VincentTrotot\ConseilMunicipal\ConseilMunicipal est une espèce de wrapper du Post (la classe hérite de la classe Timber\TimberPost).

Installation

composer require vtrotot/conseil-municipal-post-type

Utilisation

Votre theme doit instancier la classe ConseilMunicipalPostType

new VincentTrotot\ConseilMunicipal\ConseilMunicipalPostType();

Vous pouvez ensuite récupérer un Post de type ConseilMunicipal:

$post = new VincentTrotot\ConseilMunicipal\ConseilMunicipal();

Ou récupérer plusieurs posts avec :

$args = [
    'post_type' => 'vt_cm',
    ...
];
$posts = new Timber\TimberRequest($args, VincentTrotot\ConseilMunicipal\ConseilMunicipal::class);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固