承接 elcontraption/wp-theme-config 相关项目开发

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

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

elcontraption/wp-theme-config

最新稳定版本:0.2.20

Composer 安装命令:

composer require elcontraption/wp-theme-config

包简介

Sensible default settings and intelligent overrides for theming WordPress.

README 文档

README

Sensible default settings and intelligent overrides for theming WordPress.

Installation

Via Composer:

composer require elcontraption/wp-theme-config

Setup

In your theme's functions.php file:

/**
 * Require Composer's autoloader if you haven't already:
 */
require('vendor/autoload.php');

/**
 * Initialize ThemeConfig.
 */
ElContraption\WpThemeConfig\ThemeConfig::getInstance();

Check out the default config files. You may override any of the settings within the default config files by creating a file of the same name in your theme's config directory. Your config override must return an array. You only need to declare the settings you would like to override.

Adding configuration settings

TODO: add documentation for this.

Important: all config settings are initialized on after_setup_theme, so actions that need to be initialized on that hook should not be wrapped in add_action.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-23