arraypress / wp-register-flyouts
Lightweight flyout panels for WordPress admin interfaces
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/arraypress/wp-register-flyouts
Requires
- php: >=7.4
- arraypress/wp-composer-assets: dev-main
- arraypress/wp-currencies: dev-main
This package is auto-updated.
Last update: 2026-02-22 10:16:53 UTC
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