ralfhortt/wp-meta-box-links
Composer 安装命令:
composer require ralfhortt/wp-meta-box-links
包简介
A WordPress meta box for links
README 文档
README
A WordPress meta box class for managing links
Usage
<?php
use RalfHortt\MetaBoxLinks\MetaBoxLinks;
// Stand alone
(new MetaBoxLinks::class, ['post'], ['website' => __('Webseite', 'text-domain'),])->register();
// As Service
PluginFactory::create()
->addService(MetaBoxLinks::class, ['post'], [
'website' => __('Webseite', 'text-domain'),
])
```�
## Hooks
### Actions
* `wp-meta-box-links/before` - Before links
* `wp-meta-box-links/after` - After links
* `wp-meta-box-links/save` - During meta save
### Filters
* `wp-meta-box-links/identifier` - Add/remove link fields
* `wp-meta-box-links/label` - Change the label
* `wp-meta-box-links/fields` - Add fields
## ToDo
* Placeholder capabilitys
* Custom validation
## Changelog
### v1.0.0 - 2023-04-06
* Refactor
### v0.2.0
* Add capability for multiple links
* Add: Hook `wp-meta-box-links--fields` added
### v0.1.0
* Initial release
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-06