figuren-theater/ft-options

Options management via code for a WordPress multisite like figuren.theater

Installs: 484

Dependents: 12

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 2

Type:wordpress-muplugin

1.2.5 2024-02-24 14:02 UTC

This package is auto-updated.

Last update: 2024-11-14 10:19:35 UTC


README


figuren.theater Logo

figuren.theater | Options

Options Management for a WordPress Multisite network like figuren.theater.


Read our blog

See the network in actionJoin the networkCreate your own network

About

This is the long desc

  • list closed tracking-issues or docs files here
  • Write better Readme
  • Do you have any ideas ?

Background & Motivation

...

Install

  1. Install via command line
    composer require figuren-theater/ft-options

Usage

API

Figuren_Theater::API\get_...()

Plugins included

This package contains the following plugins. Thoose are completely managed by code and lack of their typical UI.

  • markjaquith/wp-tlc-transients A WP transients interface with support for soft-expiration, background updating of the transients.
    (Not a real plugin, but a powerful external library, that is autoloaded via composer.)

What does this package do in addition?

Accompaniying the core functionality of the mentioned plugins, theese best practices are included with this package.

  • Provide an API for handling WordPress options and site_options completely static via code by utilising some functions around the pre_option_${option_name} filter. The API allows options to be either:

    • static
      The same code-defined option value is used througout the complete network of all sites.
    • synced
      The option value used, is taken from another site within the multisite network.
    • merged
      This is handy especially for options containing array or objects of different data. This option-type mixes static option values, provided by code, with dynamic data created by and for the current site.

Built with & uses

  • dependabot
  • code-quality A set of status checks to ensure high and consitent code-quality for the figuren.theater platform.
  • ....

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Versioning

We use Semantic Versioning for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the GPL-3.0-or-later, see the LICENSE file for details

Acknowledgments