Installation
Requirements, activation behaviour, admin setup, developer builds, packaging and uninstall cleanup for Jalpi Page Builder.
Installing Jalpi Page Builder is a standard WordPress plugin install, but the activation step does real work: it creates three custom tables, seeds the Design System, and registers the default settings groups. This page covers the whole lifecycle β installing, verifying, configuring, building from source, packaging a distribution zip, updating and uninstalling β with the exact database and option names each step touches.
Everything described here comes from jalpi-page-builder.php, includes/class-jalpi-activator.php, includes/class-jalpi-settings.php, includes/class-jalpi-editor.php, uninstall.php and the build scripts.
Requirements#
The plugin header and readme declare the supported environment:
| Requirement | Value |
|---|---|
| WordPress | 6.0 or later |
| Tested up to | WordPress 7.1 |
| PHP | 8.0 or later |
| Plugin version | 1.0.5 |
| License | GPL-2.0-or-later |
| Memory | 64 MB or more recommended (the built-in diagnostic warns below 64M) |
There are no required third-party plugins. WooCommerce is optional β Jalpi_Woo::init_frontend() runs only when the Jalpi_Woo class is available, and the product widgets fall back to placeholder content when WooCommerce is inactive.
The plugin does not enforce a minimum PHP version at runtime with an activation guard; it relies on the Requires PHP: 8.0 header, which WordPress itself checks before allowing activation.
Installing the Plugin#
Jalpi Page Builder is published in the WordPress Plugin Directory at wordpress.org/plugins/jalpi-page-builder, so there are three install routes depending on what you are doing.
From the Plugin Directory β the normal route.
- In WordPress admin, go to Plugins β Add New.
- Search for Jalpi Page Builder.
- Click Install Now, then Activate.
- Go to Jalpi Page Builder in the admin menu.
- Open any page or post and click Edit with Jalpi Page Builder.
This route also enables automatic update notifications in wp-admin.
Where to find the editor. After activation, open a page or post with any of these: the Edit with Jalpi Page Builder button on the Jalpi Page Builder screen; the Jalpi Edit row action in the Pages and Posts lists; the Jalpi Page Builder box on the classic edit screen; the Jalpi Edit link in the admin bar; and, new in 1.0.5, the Edit with Jalpi Page Builder button in the block editor toolbar. Users whose role has no Jalpi access (see Role Manager) do not see any of them.
From a zip β for a packaged build. Use Plugins β Add New β Upload Plugin and select dist/jalpi-page-builder.zip, the artefact produced by bin/build-zip.js.
Manually β the path the readme documents.
- Upload the
jalpi-page-builderfolder to/wp-content/plugins/. - Activate the plugin through the Plugins menu in WordPress.
- Go to Jalpi Page Builder in the admin menu.
- Open any page or post and click Edit with Jalpi Page Builder.
The distributed zip deliberately omits the editor sources (admin/editor/src/), the build script and package.json β it ships only the compiled bundle in admin/editor/build/. If you intend to modify the editor, install from the full source tree instead. See Building From Source below.
What Activation Does#
register_activation_hook() points at Jalpi_Activator::activate(), which performs every one-time setup step.
Tables Created#
Three tables are created with dbDelta():
| Table | Purpose | Key columns |
|---|---|---|
{prefix}jalpi_pages | One saved layout per post | post_id (unique), page_data LONGTEXT, version, created_at, updated_at |
{prefix}jalpi_classes | Site-wide reusable CSS classes | class_key (unique), name, styles LONGTEXT, favorite, sort_order, created_by |
{prefix}jalpi_revisions | Page revision history | created by Jalpi_Revisions::create_table() |
All three use CREATE TABLE IF NOT EXISTS, so re-activation is safe and non-destructive.
Options Created#
Activation adds β never overwrites β the following options. add_option() is a no-op when a key already exists, so this is safe on both fresh installs and updates:
jalpi_versionβ set toJALPI_VERSIONjalpi_classes_versionβ1jalpi_classes_table_readyβ'1'jalpi_enabled_post_typesβ['page', 'post']jalpi_settings_general,jalpi_settings_layout,jalpi_settings_design,jalpi_settings_performance,jalpi_settings_breakpointsβ seeded fromJalpi_Settings::defaults()
It then calls self::seed_design_system() to populate the Design System token set, and Jalpi_Revisions::create_table() to create the revisions table with its own jalpi_revisions_db_version guard.
Multisite#
The main plugin file hooks wp_initialize_site so that a newly created blog gets its own tables:
add_action( 'wp_initialize_site', function( $new_site ) {
switch_to_blog( $new_site->blog_id );
Jalpi_Activator::activate();
restore_current_blog();
} );Tables are per-site ($wpdb->prefix), not network-wide. Network-activating the plugin on an existing multisite install does not retroactively create tables on every existing blog β only new sites created after activation run through this hook. Existing sites get their tables when the plugin is activated on that site.
Verifying the Installation#
The plugin ships a Support Center with a read-only diagnostics routine (Jalpi_Support_Center::ajax_diagnostics()) at Jalpi Page Builder β Support. It requires the edit_posts capability and writes nothing to the database or filesystem, so it is always safe to run.
The checks it performs:
| Check | Pass condition |
|---|---|
| PHP version | version_compare( PHP_VERSION, '7.4', '>=' ) |
| Builder database table | {prefix}jalpi_pages exists |
| Orphaned layouts | No rows in jalpi_pages whose post_id has no matching post (warns if any) |
Asset: assets/css/frontend.css | File exists and is readable |
Asset: assets/js/jalpi-frontend.js | File exists and is readable |
| Memory limit | WP_MEMORY_LIMIT β₯ 64 MB (warns below) |
| Recent fatal errors | Scans the tail of debug.log when WP_DEBUG_LOG is on, up to an 8 MB scan limit |
If the builder table check fails, the diagnostic's own advice is to deactivate and reactivate the plugin, which re-runs Jalpi_Activator::activate().
The same screen collects non-sensitive environment facts for support requests β plugin version, WordPress version, PHP version, MySQL version, active theme, site URL, multisite flag, memory limit, max upload size, debug mode and active plugin count.
The Admin Surface After Activation#
Activation adds one top-level menu and four submenu entries.
Menu Structure#
| Menu item | Page slug | Capability | Registered in |
|---|---|---|---|
Jalpi Page Builder (top level, dashicons-layout, position 30) | jalpi-page-builder-editor | edit_posts | Jalpi_Editor::register_menu() |
| Settings | jalpi-page-builder-settings | read | Jalpi_Settings::add_menu() |
| Theme Builder | jalpi-theme-builder | edit_theme_options | Jalpi_Theme_Builder |
| Starter Sites | jalpi-website-templates | manage_options | Jalpi_Theme_Builder |
| Support | jalpi-support | edit_posts | Jalpi_Support_Center |
The Settings page is registered twice on purpose: as a hidden top-level page (so its hook name is always toplevel_page_jalpi-page-builder-settings, then immediately removed from the sidebar with remove_menu_page()), plus a cosmetic submenu entry with no callback. The submenu is declared with the read capability, but Jalpi_Settings::render_page() gates the actual screen on current_user_can( 'manage_options' ) and shows an "Administrator access required" message otherwise.
Editor Entry Points#
Jalpi_Post_Support adds three ways to open the editor for a given post, all pointing at the same URL shape:
admin.php?page=jalpi-page-builder-editor&post_id=<ID>- A meta box titled "Jalpi Page Builder" in the side column of every enabled post type, containing an Edit with Jalpi Page Builder button.
- A "Jalpi Edit" row action on the Posts and Pages list tables (
post_row_actionsandpage_row_actions). - An admin bar node with id
jalpi_edit, added at priority 100, shown on singular frontend views and in the admin.
All three consult the jalpi_enabled_post_types option, so they appear only for post types you have enabled.
Visiting the top-level menu page without a post_id shows a dashboard listing the 50 most recently modified posts of the enabled types, each with an Edit with Jalpi Page Builder button.
Enabling Post Types#
Pages and posts are enabled out of the box. To enable more, go to Jalpi Page Builder β Settings β General β Supported Post Types.
The list offered is every public post type except attachment, filtered through jalpi_selectable_post_types. When the General group is saved, Jalpi_Settings::sanitize_general() writes the selection into jalpi_settings_general['enabled_post_types'] and mirrors it to the standalone jalpi_enabled_post_types option:
// Keep the legacy option in sync so existing code paths still work.
update_option( 'jalpi_enabled_post_types', $clean['enabled_post_types'] );That second option is the one Jalpi_Editor, Jalpi_Post_Support and the API actually read, so both stay consistent.
The same tab offers Disable Gutenberg, a per-post-type list stored in jalpi_settings_general['disable_gutenberg'] and applied through the use_block_editor_for_post_type filter. Internal post types such as theme templates are not enabled through this option β they are admitted to the editor by the jalpi_internal_editor_post_types filter instead.
Settings Groups and Defaults#
Jalpi_Settings registers five tabs β General, Layout, Global Design, Performance and Breakpoints β through the WordPress Settings API. Each maps to one option:
| Tab | Option constant | Option name |
|---|---|---|
| General | OPT_GENERAL | jalpi_settings_general |
| Layout | OPT_LAYOUT | jalpi_settings_layout |
| Global Design | OPT_DESIGN | jalpi_settings_design |
| Performance | OPT_PERFORMANCE | jalpi_settings_performance |
| Breakpoints | OPT_BREAKPOINTS | jalpi_settings_breakpoints |
| (Design System) | OPT_DESIGN_SYSTEM | jalpi_settings_design_system |
The defaults returned by Jalpi_Settings::defaults() β themselves filterable via jalpi_settings_defaults β are:
| Group | Key | Default |
|---|---|---|
| general | enable_builder | '1' |
| general | enabled_post_types | ['page', 'post'] |
| general | disable_gutenberg | [] |
| layout | container_width | 1200px |
| layout | section_padding | 80px 0 |
| layout | column_gap | 20px |
| design | primary_color | #6366f1 |
| design | secondary_color | #8b5cf6 |
| design | body_font | '' |
| design | heading_font | '' |
| design | base_font_size | 16 |
| performance | enable_css_generation | '1' |
| performance | enable_lazy_loading | '1' |
| performance | enable_page_cache | '' |
| breakpoints | tablet_breakpoint | 1024 |
| breakpoints | mobile_breakpoint | 767 |
The Design System is seeded separately by Jalpi_Settings::default_design_system_tokens(), which ships starter tokens for colors (Primary, Secondary, Dark, White), font sizes, line heights, letter spacing, border radius, box shadows, spacing (XS through 2XL), container widths and opacity, with empty fontFamilies, typography and buttons lists.
Building From Source#
The React editor is compiled with esbuild. All commands run from admin/editor/.
npm Scripts#
| Script | Command | Purpose |
|---|---|---|
npm run build | node build.js | Production build β minified, no source maps |
npm run start | node build.js --watch | Watch mode β unminified, inline source maps |
npm run lint | tsc --noEmit | Type-check only |
npm run package | node ../../bin/build-zip.js | Produce the distribution zip |
Dev dependencies are @types/react, @types/react-dom, esbuild, rtlcss and typescript. There are no runtime npm dependencies.
Build Output#
build.js writes four artefacts into admin/editor/build/:
index.jsβ the bundled editor, IIFE format,es2020target, automatic JSX runtimeindex.cssβ extracted editor CSSindex-rtl.cssβ RTL variant produced withrtlcss; if rtlcss cannot be loaded the LTR file is copied instead, so the stylesheet handle always resolvesindex.asset.phpβ a WordPress dependency manifest returning['dependencies' => ['react', 'react-dom', 'react-jsx-runtime'], 'version' => <md5 of index.js, first 20 hex chars>]
React is not bundled. A small esbuild plugin (wpGlobalsPlugin) rewrites react, react-dom, react-dom/client and react/jsx-runtime to the window.React, window.ReactDOM and window.ReactJSXRuntime globals that WordPress core provides.
In watch mode an onEnd hook regenerates index.asset.php and the RTL stylesheet after every successful rebuild.
How the Bundle Is Loaded#
Jalpi_Editor::enqueue_editor() runs on admin_enqueue_scripts and returns immediately unless the hook is toplevel_page_jalpi-page-builder-editor and the current user can edit_post the requested post_id. When it proceeds it:
- Empties the WordPress admin footer text so the editor can go full-screen.
- Calls
wp_enqueue_media()sowp.media()is available for the image pickers. - Reads
build/index.asset.phpfor the dependency list. - Enqueues
jalpi-editorscript and style, versioned byfilemtime()ofbuild/index.jsso the browser cache busts on every rebuild. - Adds the full-screen CSS via
wp_add_inline_style(). - Localizes the
jalpiEditorConfigglobal.
If you rebuild the bundle and do not see your changes, the mtime-based version means a hard refresh is rarely needed β but a page cache or CDN in front of wp-admin can still serve a stale file.
Packaging for Distribution#
bin/build-zip.js produces a WordPress-ready zip. It requires Node.js 16 or later and no extra npm packages β it uses Node built-ins plus the platform's native zip tool (Compress-Archive via PowerShell on Windows, zip on Unix and macOS).
# from admin/editor/
npm run package
# or from the plugin root
node bin/build-zip.jsOutput: dist/jalpi-page-builder.zip, reported with its size on completion.
The script copies the plugin to a temp directory applying the exclusion list that mirrors .distignore, then zips it. Excluded from the package:
- Editor build inputs β
admin/editor/node_modules,src,package.json,package-lock.json,yarn.lock,pnpm-lock.yaml,build.js,webpack.config.js,vite.config.js,tsconfig.json,jsconfig.json - Source control β
.git,.gitignore,.gitattributes,.github tests/,coverage/,phpcs.xml,phpcs.xml.dist- Packaging tooling β
bin/,dist/ - Development notes β
BUILD.md,main-concept.txt,woo.txt,performance.txt,plugin-checklist-audit.txt - Old zips,
.vscode,.idea,.claude, and any.mapfile
Build the editor before packaging. The packager copies whatever is currently in admin/editor/build/ and excludes the sources, so a stale bundle ships silently.
Updating#
WordPress does not re-run the activation hook when plugin files are updated, so Jalpi handles upgrade steps separately. jalpi_init() calls Jalpi_Activator::maybe_upgrade() on every request. It:
- Runs
backfill_menu_kits(), a one-time step self-gated on thejalpi_menu_kits_backfilledoption that tags pre-existing starter-kit menus with the_jalpi_kitterm meta. - Returns immediately if
get_option( 'jalpi_version' )already equalsJALPI_VERSIONβ making every call after the first a cheap no-op. - Otherwise re-seeds the Design System and writes the new
jalpi_version.
This is the correct place for any one-time migration that must also reach sites which updated files without deactivating and reactivating.
Schema changes are guarded independently: Jalpi_Revisions::maybe_create_table() compares jalpi_revisions_db_version against its DB_VERSION constant and recreates the table when they differ.
Deactivating and Uninstalling#
Deactivation keeps everything. Jalpi_Activator::deactivate() is intentionally empty β its only body is the comment "Intentionally keep data on deactivation." Because publishing writes rendered HTML into post_content, pages continue to display as static HTML while the plugin is off.
Deletion runs uninstall.php, which aborts unless WP_UNINSTALL_PLUGIN is defined. On multisite it iterates every site with switch_to_blog() and runs the same cleanup per site. For each site it:
- Drops
{prefix}jalpi_pagesand{prefix}jalpi_revisions. - Deletes the options
jalpi_version,jalpi_enabled_post_types,jalpi_revisions_db_version,jalpi_settings_general,jalpi_settings_layout,jalpi_settings_design,jalpi_settings_performance,jalpi_settings_breakpointsand_jalpi_orphan_cleanup_v1. - Deletes every row of the post meta keys
_jalpi_has_canvas_data,_jalpi_render_error,_jalpi_history,_jalpi_tpl_type,_jalpi_tpl_category,_jalpi_tpl_thumbnail,_jalpi_tpl_location,_jalpi_tpl_status,_jalpi_tpl_priority,_jalpi_tpl_conditions,_jalpi_is_bundledand_jalpi_bundled_slug. - Force-deletes every post of the custom post types
jalpi_templateandjalpi_theme_tpl. - Deletes the plugin's transients:
jalpi_render_,jalpi_google_fonts_andjalpi_editor_tpl_list, along with their_transient_timeout_counterparts.
Regular posts and pages are never deleted. Their post_content retains the last published render.
Examples#
Setting up a development build#
Clone or copy the full source tree into wp-content/plugins/, then build the editor. Watch mode rebuilds the bundle, the asset manifest and the RTL stylesheet on every save.
cd wp-content/plugins/jalpi-page-builder/admin/editor
npm install
# one-off production build
npm run build
# development watch build
npm run start
# type-check without emitting
npm run lintProducing a distribution zip#
Always build the editor first β the packager excludes admin/editor/src and ships whatever is already in admin/editor/build.
cd admin/editor
npm run build
npm run package
# output: dist/jalpi-page-builder.zipActivation and multisite wiring#
From jalpi-page-builder.php. Deactivation deliberately has no cleanup; new multisite blogs get their own tables.
register_activation_hook( JALPI_FILE, [ 'Jalpi_Activator', 'activate' ] );
register_deactivation_hook( JALPI_FILE, [ 'Jalpi_Activator', 'deactivate' ] );
// Multisite: create tables when a new blog is created
add_action( 'wp_initialize_site', function( $new_site ) {
switch_to_blog( $new_site->blog_id );
Jalpi_Activator::activate();
restore_current_blog();
} );Opening the editor programmatically#
The URL shape used by the meta box, the row action and the admin bar node, from Jalpi_Post_Support::editor_url().
$url = admin_url( 'admin.php?page=jalpi-page-builder-editor&post_id=' . intval( $post_id ) );The jalpiEditorConfig global#
Localized onto the editor script by Jalpi_Editor::enqueue_editor(). Useful when debugging an installation β if the editor mounts blank, check that this object exists and carries a valid apiUrl and nonce.
window.jalpiEditorConfig = {
hasWoo: false,
postId: 42,
apiUrl: 'https://example.com/wp-json/jalpi-page-builder/v1',
nonce: 'β¦', // wp_rest
adminUrl: 'https://example.com/wp-admin/',
homeUrl: 'https://example.com',
previewUrl: 'β¦',
uploadUrl: 'https://example.com/wp-admin/upload.php',
assetsUrl: 'β¦/plugins/jalpi-page-builder/assets/',
pluginUrl: 'β¦/plugins/jalpi-page-builder/',
version: '1.0.5',
colors: [ /* theme colors */ ],
fonts: [ /* font options */ ],
designSystem: { /* tokens */ },
canManageDesignSystem: true,
canUnfilteredHtml: true,
templateList: [ /* saved templates */ ],
previewNonce: 'β¦',
ajaxUrl: 'https://example.com/wp-admin/admin-ajax.php',
};Admitting an internal post type to the editor#
Post types enabled in Settings go through the jalpi_enabled_post_types option. Internal types that should not appear in that UI are admitted with this filter, which both Jalpi_Editor and Jalpi_API consult.
add_filter( 'jalpi_internal_editor_post_types', function ( array $types ) {
$types[] = 'my_internal_type';
return $types;
} );Notes#
- The plugin is published in the WordPress Plugin Directory at https://wordpress.org/plugins/jalpi-page-builder/. The listing reports the same version (1.0.5), WordPress requirement (6.0 or higher) and PHP requirement (8.0 or higher) as the plugin header. Its "Tested up to" shows the specific WordPress release (7.1.4) where
readme.txtrecords the branch (7.1). - Installing from the Plugin Directory is what enables update notifications in wp-admin. A manually uploaded copy or a self-built zip receives none, so a development install has to be updated by hand.
- Re-activating the plugin is a safe repair step. Every table is created with
CREATE TABLE IF NOT EXISTSand every option withadd_option(), so activation never overwrites existing data β this is exactly what the Support diagnostic suggests when the builder table is missing. - The Settings submenu is registered with the
readcapability so it is visible, but the screen itself requiresmanage_options. Non-administrators who follow the link see an "Administrator access required" message rather than a WordPress permission error. - The Support Center's PHP check tests against 7.4, while the plugin header requires PHP 8.0. A site on PHP 7.4 would therefore pass the in-plugin diagnostic but be blocked from activating by WordPress itself.
Jalpi_Settingsregisters atemplate_redirecthandler that catcheswp-admin/jalpi-page-builder-settingsβ a URL shape produced by Local by Flywheel's router β and redirects it to the correctadmin.php?page=β¦address.- A legacy
webpack.config.jsis still present inadmin/editor/, but the npm scripts invokebuild.js(esbuild). The packager excludes both, so it does not affect distribution builds. - The distributed zip contains only the compiled editor. To modify the editor you need the full source tree β installing from
dist/jalpi-page-builder.zipgives youadmin/editor/build/with nosrc/to rebuild from.
Warnings#
uninstall.phpdrops{prefix}jalpi_pagesand{prefix}jalpi_revisionsbut does not drop{prefix}jalpi_classes. Global classes created with the class manager survive plugin deletion and must be removed manually if a full cleanup is required.- The uninstall option list also omits
jalpi_settings_design_system,jalpi_classes_version,jalpi_classes_table_readyandjalpi_menu_kits_backfilled. These remain in the options table after deletion. - Deleting the plugin force-deletes every
jalpi_templateandjalpi_theme_tplpost β your saved template library and all theme-builder templates β bypassing the trash. Export anything you want to keep before deleting. - Activation is per-site on multisite. Network activation does not retroactively create tables for blogs that already exist; only sites created afterwards are covered by the
wp_initialize_sitehook. - Run
npm run buildbeforenpm run package. The packager excludesadmin/editor/srcand copies the existingbuild/directory as-is, so an out-of-date bundle ships without any warning. - Never edit
admin/editor/build/index.jsdirectly. It is a generated artefact and the next build overwrites it β and itsindex.asset.phpversion is an md5 of the file, so hand edits also change the cache-busting version in a way that is easy to misread as a successful rebuild.
Source Files#
jalpi-page-builder.phpreadme.txtuninstall.phpincludes/class-jalpi-activator.phpincludes/class-jalpi-settings.phpincludes/class-jalpi-editor.phpincludes/class-jalpi-post-support.phpincludes/class-jalpi-revisions.phpincludes/class-jalpi-theme-builder.phpincludes/class-jalpi-templates.phpincludes/support/class-jalpi-support-center.phpadmin/editor/package.jsonadmin/editor/build.jsbin/build-zip.js
Related#
Last updated: November 2026