Download the PHP package wp-kit/shortcodes without Composer
On this page you can find all versions of the php package wp-kit/shortcodes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wp-kit/shortcodes
More information about wp-kit/shortcodes
Files in wp-kit/shortcodes
Package shortcodes
Short Description A wp-kit component that handles shortcodes
License MIT
Homepage https://github.com/wp-kit/shortcodes
Informations about the package shortcodes
wp-kit/shortcodes
This is a wp-kit component that handles shortcodes.
This component was built to run within an so is perfect for frameworks such as , and .
Often, WordPress developers want an approach to shortcodes, this is exactly what this repo delivers.
Installation
If you're using , install via in the root of your installation, otherwise install in your driven theme folder:
Setup
Add Service Provider
Just register the service provider and facade in the providers config and theme config:
Add PRS4 Class Reference (Themosis Only)
Just add the following line to in the theme folder:
Add Config & View File
The recommended method of installing config files for components is via command.
First, install WP CLI, and then install this component, will automatically be installed with , once installed you can run:
For more information, please visit .
Alternatively, you can place the view file(s) in your , and directories manually.
Usage
Adding Classes
comes with a class which can be extended by your own shortcode classes which should be added inside within the namespace .
Here is an example Shortcode class.
Adding Views
When you add a shortcode class, be sure to add a template view file within with the same name as the you have set in the shortcode class.
You may use whatever either or file types. We always recommend .
Here is an example view files.
Get Involved
To learn more about how to use check out the docs:
Any help is appreciated. The project is open-source and we encourage you to participate. You can contribute to the project in multiple ways by:
- Reporting a bug issue
- Suggesting features
- Sending a pull request with code fix or feature
- Following the project on GitHub
- Sharing the project around your community
For details about contributing to the framework, please check the contribution guide.
Requirements
Wordpress 4+
PHP 5.6+
License
wp-kit/shortcodes is open-sourced software licensed under the MIT License.
All versions of shortcodes with dependencies
wp-kit/integrations Version 2.*
wp-kit/utils Version 2.*
illuminate/view Version ^8.0