Skip to content

A declarative flyout panel system for WordPress admin interfaces. Build slide-out forms with 20+ components, automatic data binding, and AJAX handling.

Notifications You must be signed in to change notification settings

arraypress/wp-register-flyouts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Flyout Library

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

About

A declarative flyout panel system for WordPress admin interfaces. Build slide-out forms with 20+ components, automatic data binding, and AJAX handling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published