Download the PHP package alexrah/wp-page-template-loader without Composer
On this page you can find all versions of the php package alexrah/wp-page-template-loader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alexrah/wp-page-template-loader
More information about alexrah/wp-page-template-loader
Files in alexrah/wp-page-template-loader
Download alexrah/wp-page-template-loader
More information about alexrah/wp-page-template-loader
Files in alexrah/wp-page-template-loader
Vendor alexrah
Package wp-page-template-loader
Short Description Helper Classes to inject page templates & template parts
License MIT
Homepage https://github.com/alexrah/wp-page-template-loader
Package wp-page-template-loader
Short Description Helper Classes to inject page templates & template parts
License MIT
Homepage https://github.com/alexrah/wp-page-template-loader
Please rate this library. Is it a good library?
Informations about the package wp-page-template-loader
About
Helper class meant to be used in WP plugins to inject template-parts & page-templates in the currenct active theme
Usage
in the plugin directory create the following dirs:
- template-pages
- template-parts
in the main plugin file initialize the class:
available $aOpts
options:
filter_prefix
: define a custom prefix for filter & action hooks, defaults to$sPluginRootFile
theme_template_directory
: define a folder name inside the current theme to scan for template-parts, default tonone
plugin_template_pages_directory
: define the folder name inside the plugin where page-templates are stored, defaults totemplate-pages
plugin_template_parts_directory
: define the folder name inside the plugin where template-parts are stored, defaults totemplate-parts
install using composer:
composer require alexrah/wp-admin-custom-post-types
published on packagist at: https://packagist.org/packages/alexrah/wp-admin-custom-post-types
Changelog
version 1.0.0
- helper classes to inject template-parts & page-templates
Credits
- page-templates were adapted from http://www.wpexplorer.com/wordpress-page-templates-plugin/
- template-parts were adaptad from http://github.com/GaryJones/Gamajo-Template-Loader
All versions of wp-page-template-loader with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0.0
The package alexrah/wp-page-template-loader contains the following files
Loading the files please wait ....