Skip to content

Commit

Permalink
feat: delete origin wp-option
Browse files Browse the repository at this point in the history
  • Loading branch information
j7-dev committed Jan 14, 2024
1 parent fcdd1f2 commit 3d14f4b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
vendor
wp-option

13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# WP Toolkit | 我的 WordPress 外掛
一句話講完 WP Toolkit :

> 這是一個 WordPress 外掛的範本,可以用來開發新的外掛。
> WP Toolkit 是針對開發人員使用的 WordPress Plugin,理念是 library as plugin ,功能類似精簡版本的 metabox / ACF 讓你方便快速的創建頁面欄位還有 metabox
<br><br><br>

[ ] 上傳圖片時 不會馬上關閉視窗,應該要馬上關閉 <br>
⬜ METABOX 上傳圖片時 不會馬上關閉視窗,應該要馬上關閉 <br>
⬜ MENU 不能使用 repeater <br>
⬜ 上傳圖片 JS 應該有重複 待優化<br>


## 📦 Install

如果你要將此套件做為你的套件依賴,推薦使用 TGM Plugin 來做套件依賴

## Get Started

## ⚡ 主要功能

Expand Down
4 changes: 0 additions & 4 deletions inc/core/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ public function addRepeaterBlock($args)
*/
public function get_field_types()
{
ob_start();
print_r($this->_fields);
Utils::debug_log('' . ob_get_clean());

foreach ($this->_fields as $field) {
if (isset($field['type'])) {
$this->_field_types[] = \sanitize_key($field['type']);
Expand Down
8 changes: 1 addition & 7 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: WP Toolkit
* Plugin URI: https://cloud.luke.cafe/plugins/
* Description: 方便開發 WordPress 外掛的工具包。
* Version: 0.0.1
* Version: 0.1.0
* Requires at least: 5.7
* Requires PHP: 7.4
* Author: J7
Expand All @@ -20,12 +20,6 @@

namespace J7\WpToolkit;

// TODO DELETE
require_once __DIR__ . '/wp-option/src/Option.php';
require_once __DIR__ . '/wp-option/src/Helper.php';



use J7\WpToolkit\Utils;
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;

Expand Down
1 change: 0 additions & 1 deletion wp-option
Submodule wp-option deleted from 59945d

0 comments on commit 3d14f4b

Please sign in to comment.