定制 proteusthemes/edd-theme-updater 二次开发

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

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

proteusthemes/edd-theme-updater

Composer 安装命令:

composer require proteusthemes/edd-theme-updater

包简介

Used for activating the theme and offering automatic updates to the users via the EDD shop.

README 文档

README

Used for activating the theme and offering automatic updates to the users via the EDD shop.

Instructions

For each theme you have to define some parameters for the updater. You can hook it to the after_setup_theme:

/**
 * Load EDD theme updater.
 */
public function enable_edd_theme_updater() {
	$config = array(
		'remote_api_url' => 'https://www.your_site.com', // Site where EDD is hosted.
		'item_name'      => 'Theme name', // Name of theme.
		'theme_slug'     => 'themename-slug', // Theme slug.
		'version'        => '1.0.0', // The current version of this theme.
		'author'         => 'Author', // The author of this theme.
		'download_id'    => '', // Optional, used for generating a license renewal link.
		'renew_url'      => '', // Optional, allows for a custom license renewal link.
	);
	$edd_updater = new ProteusThemes\EDDThemeUpdater\EDDThemeUpdaterConfig( $config );
}
add_action( 'after_setup_theme', 'enable_edd_theme_updater' );

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2016-11-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固