Local JSON for FacetWP
Saves FacetWP facets, templates and settings as .json files and keep them in your source code repository.
by d1sabled - Dan Lapteacru · github.com/danlapteacru/facetwp-local-json · website
★ 4stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/danlapteacru/facetwp-local-json/archive/refs/heads/main.zipAlso on Packagist as danlapteacru/local-json-for-facetwp:
composer require danlapteacru/local-json-for-facetwpFrom the readme
FacetWP Local JSON
FacetWP Local JSON is a WordPress plugin that allows you to store FacetWP facets, templates and settings as .json file and keep them in your source code repository.
- Minimum Requirements
- Installation
- Hooks
- Constants
- TODO
- Credits
- License
Minimum Requirements
- PHP v8.1
- WordPress v6.1
- FacetWP v4.0
Installation
Composer (Recommended)
WP-CLI
wordpress.org plugins directory
Download from https://wordpress.org/plugins/facetwp-local-json and install it manually or via WordPress admin panel.
Hooks
facetwplocaljsonsettings
Filter the settings that are stored in the .json file.
Example:
facetwplocaljsonstoragepath
Filter the path where the .json files are stored.
Default is wp-content/themes/your-theme/plugins/facetwp/local-json/settings.json.
Example:
Constants
FACETWPLOCALJSONSTORAGEPATH
Define the path where the .json files are store in your wp-config.php file.
Example:
FACETWPLOCALJSONFORCEENABLE
Force enable/disable the FacetWP Local JSON features.
Example:
TODO
- [ ] Add support for WPML and Polylang.
- [ ] Option to select which facets, templates and settings to store in the .json file.
- [ ] Tests.
- [ ] Documentation.
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 0.1.0 | Jul 29, 2024 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.