arraypress/wp-register-flyouts
Composer 安装命令:
composer require arraypress/wp-register-flyouts
包简介
Lightweight flyout panels for WordPress admin interfaces
README 文档
README
A WordPress library for creating slide-out panels with forms, data displays, and interactive components. Perfect for admin interfaces, edit screens, and anywhere you need contextual editing without page reloads.
Installation
composer require arraypress/wp-register-flyouts
Quick Start
register_flyout( 'shop_edit_product', [ 'title' => 'Edit Product', 'fields' => [ 'name' => [ 'type' => 'text', 'label' => 'Product Name' ], 'price' => [ 'type' => 'number', 'label' => 'Price', 'min' => 0, 'step' => 0.01 ], ], 'load' => fn( $id ) => get_post( $id ), 'save' => fn( $id, $data ) => wp_update_post( [ 'ID' => $id, 'post_title' => $data['name'] ] ), ] ); render_flyout_button( 'shop_edit_product', [ 'id' => $product_id, 'text' => 'Edit' ] );
Documentation
Full documentation is available at https://arraypress.github.io/wp-register-flyouts
Requirements
- PHP 7.4+
- WordPress 5.8+
License
GPL-2.0-or-later
统计信息
- 总下载量: 49
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-11-22