承接 alexrah/wp-page-template-loader 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

alexrah/wp-page-template-loader

最新稳定版本:1.2.0

Composer 安装命令:

composer require alexrah/wp-page-template-loader

包简介

Helper Classes to inject page templates & template parts

README 文档

README

Helper class meant to be used in WP plugins to inject template-parts & page-templates in the currenct active theme

Usage

in the plugin directory create the following dirs:

  • template-pages
  • template-parts

in the main plugin file initialize the class:

new WpPageTemplateLoader(__FILE__,$aOpts);

available $aOpts options:

  • filter_prefix: define a custom prefix for filter & action hooks, defaults to $sPluginRootFile
  • theme_template_directory: define a folder name inside the current theme to scan for template-parts, default to none
  • plugin_template_pages_directory: define the folder name inside the plugin where page-templates are stored, defaults to template-pages
  • plugin_template_parts_directory: define the folder name inside the plugin where template-parts are stored, defaults to template-parts

install using composer:

composer require alexrah/wp-admin-custom-post-types

published on packagist at: https://packagist.org/packages/alexrah/wp-admin-custom-post-types

Changelog

version 1.0.0

  • helper classes to inject template-parts & page-templates

Credits

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-13