nerbiz / wordclass
Making programming with WordPress easier and more fun
Requires
- php: ^8.0
- dev-master
- 4.1.0
- 4.0.0
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 2.0.0-beta.6
- 2.0.0-beta.5
- 2.0.0-beta.4
- 2.0.0-beta.3
- 2.0.0-beta.2
- 2.0.0-beta.1
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.7.1
- 0.8.7
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.3.3
- 0.8.3.2
- 0.8.3.1
- 0.8.3
- 0.8.0
- 0.7.1
- 0.7.0
- 0.6.12
- 0.6.11
- 0.6.10.1
- 0.6.10
- 0.6.9
- 0.6.8
- 0.6.7
- 0.6.6
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.1
- 0.5.0
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.1
- 0.3
- 0.2.1
- 0.2.0
- 0.1.3
- 0.1.2
- 0.1.1
- dev-develop
- dev-version-3.x
- dev-version-2.x
- dev-version-1.x
- dev-version-0.x
This package is auto-updated.
Last update: 2024-10-17 14:15:29 UTC
README
Making programming with WordPress easier and more fun.
I created this, because I got confused with a number of WordPress functions, that either look too similar, have an unreasonable amount of parameters, or are unnecessarily difficult to work with. And I didn't want to always search for the names of hooks.
Installation
WordClass requires PHP 8 and can be installed with Composer:
composer require nerbiz/wordclass
Wiki
Please note:
The Wiki pages are outdated (version 3). They will be updated, or maybe the examples are sufficient. Either way, they're not entirely accurate anymore.
Usage
All features are shown and documented in the example files directory.
It's always a good practice to use a prefix in your code, to avoid naming conflicts with WordPress, themes or plugins. WordClass therefore uses a prefix for many things, like options or post type names, with xyz
as the default.
Please set your prefix first, because changing it later requires you to rename values in the database as well.
use Nerbiz\WordClass\Init; use Nerbiz\WordClass\Options; // Set your prefix ('xyz' is default) Init::setPrefix('abc'); // Example usage, this option will be stored as 'abc_option_name' Options::set('option_name', 'option_value');
Problems
If you encounter any problem, please add an issue.
Contributing
If you want to translate, or have some ideas about expanding or improving this project, I'm open for suggestions and pull requests.