dwarvesforge / wp-stack
Wordpress stack that gives you nice classes as wrapper of the wordpress ones as well as some nice helper functions.
Requires
- php: >=7.0
- dwarvesforge/thorin: ^2.0
- paquettg/php-html-parser: ^1.7
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is auto-updated.
Last update: 2024-10-28 00:06:01 UTC
README
WP-Stack
Wordpress stack that gives you nice classes as wrapper of the wordpress ones as well as some nice helper functions in these areas:
- ACF
- Admin
- Archive
- Categorie
- Comment
- Image
- Is
- Media
- Menu
- Metabox
- Pagination
- Post
- Search
- User
- Util
- Widget
- Descriptive classes
WPS\ACF_Post
: class that represent an ACF drived postWPS\Category
: class that represent a category objectWPS\Comment
: class that represent a comment objectWPS\Menu_Item
: class that represent a menu item returned by function likeWPS::menu
.WPS\Post
: class that represent a post objectWPS\User
: class that represent a user object
- Usable classes
Table of content
Goals
The main goal is to give you access to some nice features like some cool wrapper classes and some helper functions to help you develop your wordpress more like a developer than a designer trying to code something. We will make this package grow every time we encounter and implement some nice functions/classes/helpers.
Install
composer require dwarvesforge/wp-stack
Options page
WP-Stack offer the ability to have an options page in the admin that expose a UI to some of the programatic features like google_analytics
, excerpt_length
, set_login_logo
, etc...
In order to access this page, you'll need two things:
- Having a proper running ACF Advanced Custom Fields PRO plugin installed
- Call the
WPS::enable_options_page()
function in yourfunctions.php
file
Contribute
Dwarvesforge is an open source project and will ever be! You are more that welcomed to contribute to his development and make it more awesome every day. To do so, you have several possibilities:
License
The code is available under the MIT license. This mean that you can use, modify, or do whatever you want with it. This mean also that it is shipped to you for free, so don't be a hater and if you find some issues, etc... feel free to contribute instead of sharing your frustrations on social networks like an asshole...
Who are Dwarvesforge
We try to be some cool guys that build some cool tools to make our (and yours hopefully) every day life better.