mimosafa/wp-theme-exchanger
Composer 安装命令:
composer require mimosafa/wp-theme-exchanger
包简介
Simple WordPress theme exchanger
README 文档
README
Simple WordPress theme exchanger.
Installation
composer require mimosafa\wp-theme-exchanger
Example
Note: This library will not work after the setup_theme action.
<?php // In your plugin file require_once( 'path/to/vendor/autoload.php' ); add_action( 'plugins_loaded', function() { /** * Theme slug * * @var string $extra_theme */ $extra_theme = 'awesome-theme'; $exchanger = new WP_Theme_Exchanger\Exchanger( $extra_theme ); if ( $_SERVER['REQUEST_URI'] === '/awesome' ) { $exchanger->on(); } } );
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2018-11-24