ralfhortt/wp-meta-box-links 问题修复 & 功能扩展

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

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-06