Project when I have spare time.
A bunch of useful classes for Wordpress related development. These classes aren't related to the last versions of Wordpress and therefore it may be used with any latest version.
Required PHP version >= 7.2
Version 1.11.0
- Framework name.
- Domain.
- Change log.
- Settings pages management improvement.
- Compose files for quick start.
- Cover all code with meaningful comments.
- Add return hints where possible.
- Create site on WP.
- Start documentation and examples.
- Bump PHP version >= 7.4
With a help of these classes you can lie solid foundation for your WP related project. Classes are suitable for both theme and plugin development.
class-autoloader.php: Autoloader + Class mapper (https://github.com/alex-sirochenko/php-classes-mapper) - loads php classes
class-reg.php: Register (the main pole) - does class initialization, grouping and provides global namespaced access as final singleton.
class-scripts-loader.php: Scripts loader - place where all your assets (scripts, styles) are being attached for front and admin side
class-template-loader.php: Template loader - loads PHP files with HTML temlates and PHP logic insertion
class-ajax.php: AJAX handler and its related classes - provide helpful logic to register ajax handlers and attach config data for front and admin side javascript files.
class-plugin-starter.php: Plugin starter boilerplate
class-header.php: Empty starter class for common region
class-footer.php: Empty starter class for common region
class-nav-menus.php: Handles nav menues registration
class-sidebars.php: Handles sidebars registration
class-theme-setup: Theme setup related logic goes here
class-rewrite-rules.php: Simple code for registering rewrite rules
metaboxes: Group of classes that help in developing metaboxes
settings pages: Group of classes that help in developing single or tabbed settings pages
class-transient-cache.php: Caches PHP templates with the help of WP Transient API
class-hooked-objects-storage.php: Storage for your objects that have been attached to apply_filters, do_action. It will help to find object link to use them in remove_filter, remove_action functions. It is more required for projects like custom theme or plugin rather than customer's site project.
class-required-pages.php: Creates required pages on plugin or theme activation with shortcode as a content and adds custom prefix text label for title in pages list view in admin side.
shortcodes: Group of classes to register and manage logic scoped into shortcode.
class-data-validator: Provides standardized way to validate data input from AJAX, REST API requests and in general data validation process.
constants.php: Provides project namespaced constants.
Copyright (c) Alex Sirochenko https://github.com/alex-sirochenko/