Help Docs – Local https://localwp.com Local WordPress development made simple Thu, 25 Jun 2026 08:36:29 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.4 https://localwp.com/wp-content/uploads/2024/08/cropped-Local-favicon-32x32.png Help Docs – Local https://localwp.com 32 32 Filters https://localwp.com/help-docs/building-your-add-on/filters/ Mon, 15 Jun 2026 23:57:59 +0000 https://localwp.com/?p=2715&post_type=help&preview_id=2715 Table of Contents: Filters enable easily modifying data that is passed around in Local. Much like WordPress’ filters, all filters in Local must return a value. Filter Name Description Allows you to add or modify items in the main app menu (top bar menu) Callback Function Parameters …

Source

]]>
Actions https://localwp.com/help-docs/building-your-add-on/actions/ Mon, 15 Jun 2026 23:53:22 +0000 https://localwp.com/?p=2718&post_type=help&preview_id=2718 Table of Contents: Unlike Content Hooks and Filters, Actions do not need to return a value.

Source

]]>
Common Parameters https://localwp.com/help-docs/building-your-add-on/common-parameters/ Mon, 15 Jun 2026 23:50:02 +0000 https://localwp.com/?p=2720&post_type=help&preview_id=2720 Table of Contents: Plain JavaScript object containing information about the selected site. Example: String containing one of the following values…

Source

]]>
Add-on API https://localwp.com/help-docs/building-your-add-on/add-on-api/ Mon, 15 Jun 2026 23:48:17 +0000 https://localwp.com/?p=2722&post_type=help&preview_id=2722 Local Add-on API Reference Explore the full, interactive API reference for below. Use this documentation to look up type definitions, classes, and available modules for building custom Local add-ons.

Source

]]>
Content Hooks https://localwp.com/help-docs/building-your-add-on/content-hooks/ Mon, 15 Jun 2026 23:36:33 +0000 https://localwp.com/?p=2713&post_type=help&preview_id=2713 Table of Contents: Content Hooks allow you to inject React components into various location in Local’s UI. With Content Hooks you can do anything from adding additional buttons, table rows, or even new pages and routes. Content Hooks are added to an array of React Components. This means all components need to have a…

Source

]]>
Context API https://localwp.com/help-docs/building-your-add-on/context-api/ Mon, 15 Jun 2026 23:29:37 +0000 https://localwp.com/?p=2708&post_type=help&preview_id=2708 Includes the following properties: Use to run actions at certain times. Hooks are especially useful when adding in element with . Exposes Electron API. The available methods and classes will differ based on whether or not this is ran from the main process or renderer process. With the Electron API you can create dialogs, open new windows, and more.

Source

]]>
Add-on structure https://localwp.com/help-docs/building-your-add-on/add-on-structure/ Mon, 15 Jun 2026 23:29:07 +0000 https://localwp.com/?p=2700&post_type=help&preview_id=2700 Add-ons extend Local in one of two ways: The renderer process is what runs inside Local’s main window. This is where you’ll add buttons, forms, and any other user interface elements. Most Add-ons will exclusively use the renderer process entry point for the sake of simplicity. To use this entry point, ensure that a property is defined within the file, which points to the…

Source

]]>
Using local-components https://localwp.com/help-docs/building-your-add-on/using-local-components/ Mon, 15 Jun 2026 23:27:35 +0000 https://localwp.com/?p=2710&post_type=help&preview_id=2710 If you need to add UI components to your Local Add-on, we recommend using the package which is available on npm. To see what components are available in , check out our styleguide. utilizes CSS Modules, which allows multiple versions of to be loaded into Local via multiple Add-ons. This allows for your Add-on to look and behave the same even if the…

Source

]]>
UI components https://localwp.com/help-docs/designing-your-add-on/ui-components/ Mon, 15 Jun 2026 23:24:27 +0000 https://localwp.com/?p=2691&post_type=help&preview_id=2691 To get you up and running quickly, we’ve provided a robust set of components for use in your Add-ons! Explore the official React component library for below. Use this interactive Storybook workspace to test native UI elements—including buttons, form inputs, layouts, and modals, ensuring your custom add-on seamlessly matches the look and feel of Local.

Source

]]>
Interaction & layout https://localwp.com/help-docs/designing-your-add-on/interaction-and-layout/ Mon, 15 Jun 2026 23:23:48 +0000 https://localwp.com/?p=2684&post_type=help&preview_id=2684 Table of Contents: Once you know what your Add-on is going to do and where it makes the most sense within the app, you can start to think about how the user will interact with it. Local is built on the premise of making complicated tasks simple. To achieve this, we work hard to design and build consistent and clear UI focused on achieving goals. To help you create these…

Source

]]>