Skip to content

Commit

Permalink
refactor: 新年快乐
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi authored Jan 1, 2025
1 parent 0e34224 commit 4447639
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# 使用说明

通过 `include_once 'API.php';` 或者 `composer require thetnb/wp-setting-api` 来引入类文件。
通过 `include_once 'API.php';` 或者 `composer require tnb/wp-setting-api` 来引入类文件。

参考 `wp-setting-api.php` 文件来了解如何使用,你可以把整个目录作为一个插件启用以预览各组件的效果。

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "thetnb/wp-setting-api",
"name": "tnb/wp-setting-api",
"description": "WordPress Setting API for developers",
"keywords": [
"wordpress"
],
"homepage": "https://github.com/thetnb/wp-setting-api",
"homepage": "https://github.com/tnb-labs/wp-setting-api",
"type": "library",
"require": {
"php": ">=5.6"
},
"license": "GPL-3.0-or-later",
"autoload": {
"psr-4": {
"TheTNB\\Setting\\": "src/"
"TNB\\Setting\\": "src/"
}
},
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion src/API.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace TheTNB\Setting;
namespace TNB\Setting;

defined( 'ABSPATH' ) || exit;

Expand Down
4 changes: 2 additions & 2 deletions wp-setting-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* Plugin Name: WP-Setting-API Demo
* Description: WP-Setting-API 的使用示例插件
* Author: 树新蜂团队
* Author URI: https://github.com/TheTNB
* Author URI: https://github.com/tnb-labs
* Version: 1.0.1
* License: GPLv3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
defined( 'ABSPATH' ) or exit;
include_once 'class-setting.php';

use TheTNB\Setting as Setting;
use TNB\Setting as Setting;

$setting_api = new Setting;

Expand Down

0 comments on commit 4447639

Please sign in to comment.