wordpress-phoenix/wordpress-options-builder-class 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wordpress-phoenix/wordpress-options-builder-class

最新稳定版本:6.0.0

Composer 安装命令:

composer require wordpress-phoenix/wordpress-options-builder-class

包简介

Library that helps you setup theme or plugin options that store data in the database with just a line or two of code

README 文档

README

WordPress options builder class is a library that helps you setup theme or plugin options that store data in the database with just a few lines of code.

Updated in 5.0

  • Updated WordPress Coding Standards
  • Improved Composer configuration
  • Added support for the .editorconfig standard
  • Rewrote encryption on the Password field type to use OpenSSL instead of mcrypt
  • Removed the Markdown field type
  • Refactored library code

Builds protected by CircleCI: CircleCI

Table of Contents

Installation

Composer style (recommended)

  1. Include in your plugin by creating or adding the following to your composer.json file in the root of the plugin
    {
      "require": {
        "WordPress-Phoenix/wordpress-options-builder-class": "^5.0.0"
      }
    }
  2. Confirm that composer is installed in your development enviroment using which composer.
  3. Open CLI into your plugins root directory and run composer install.
  4. Confirm that it created the vendor folder in your plugin.
  5. In your plugins main file, near the code where you include other files place the following:
    if ( file_exists( dirname( __FILE__ ) . 'vendor/autoload.php' ) ) {
      include_once dirname( __FILE__ ) . 'vendor/autoload.php';
    }

Manual Installation

  1. Download the most updated copy of this repository from https://api.github.com/repos/WordPress-Phoenix/wordpress-options-builder-class/zipball
  2. Extract the zip file, and copy the PHP file into your plugin project.
  3. Include the src/class-wordpress-options-panels.php file in your plugin.

Upgrading to version 5.x

Version 5.0 is a major rewrite of the WordPress Phoenix Options Panel and there are a few required update steps.

  • If not using an autoloader, include src/class-wordpress-options-panels.php (instead of wpop-init.php)
  • Reference the \WPOP\V_5_0\* namespace instead of \WPOP\V_4_1\*
  • If you aren't using an autoloader, manually load the class files into memory:
    \WPOP\V_5_0\WordPress_Options_Panels::load_files();
  • The Markdown field type has been removed; consider switching to include_partial and rendering the markdown through a PHP class of your choosing (WordPress Phoenix Options Panel version 4.x used erusev/parsedown)
  • Update your array of $args to new \WPOP\V_5_0\Page( $args, $fields ); to include an installed_dir_uri key and value, representing the public URL path to your installation of this library (required to load CSS and JS assets used to style the options panels)

Usage

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 9
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2016-11-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固