Flipbook Block WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
A WordPress block that displays a PDF as an interactive digital flipbook.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/philhoyt/flipbook-block/releases/download/V1.1.0/flipbook-block.zipA WordPress block that displays a PDF as an interactive digital flipbook powered by PageFlipOpen.
Features
- Upload any PDF from the WordPress media library
- Interactive page-flip animation
- Configurable toolbar with fullscreen and download options
- Single page or double page spread layout
- Adjustable flip animation duration and start page
- Wide and full alignment support
- PDF thumbnail preview in the block editor
- Block binding support —
pdfUrlworks withcore/post-meta(WordPress 6.9+)
Requirements
- WordPress 6.6 or higher
- PHP 7.0 or higher
Installation
- Upload the
flipbook-blockfolder to the/wp-content/plugins/directory - Activate the plugin through the Plugins menu in WordPress
- Add the Flipbook Block block to any post or page
Block Settings
Toolbar
| Setting | Default | Description |
|---|---|---|
| Show toolbar | On | Display the flipbook toolbar |
| Always visible | On | Keep the toolbar permanently visible instead of fading out |
Features
| Setting | Default | Description |
|---|---|---|
| Fullscreen button | On | Show a fullscreen toggle button in the toolbar |
| Download button | Off | Show a download button in the toolbar |
| Download filename | — | Custom filename for the downloaded PDF |
Display
| Setting | Default | Description |
|---|---|---|
| Single page mode | Off | Force single-page layout instead of auto-detecting |
| Flip duration | 800ms | Page-turn animation speed in milliseconds |
| Start page | 1 | The page number to open on |
Block Bindings
The pdfUrl attribute supports WordPress block bindings (requires WordPress 6.9+). This allows the PDF URL to be sourced dynamically from post meta rather than stored directly in the block.
Example binding declaration in a block template:
<!-- wp:ph/flipbook-block {"metadata":{"bindings":{"pdfUrl":{"source":"core/post-meta","args":{"key":"your_meta_key"}}}}} /-->
The Flipbook Catalog plugin uses this feature to create a configurable PDF catalog content type with a pre-wired block template.
Development
Prerequisites
- Node.js
- Composer
Setup
npm install
composer install
Commands
npm run build # Build for production
npm run start # Start development mode with file watching
npm run lint:js # Lint JavaScript
npm run lint:css # Lint CSS/SCSS
composer exec phpcs # Lint PHP
License
GPL-2.0-or-later — see LICENSE
Releases
2 releases. Each count is every asset in that release; expand a row for the breakdown.