Plugin / AyeShortcodes

Hapiuc Robert, AyeLabs

Frequently Asked Questions (FAQ)

A shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line. source
Simply add the shortcode id between squere brakets and place it in your post content. [shortcode_id]. If the shortcode supports attributes add them using the following sintax [shortcode_id attribute=”attribute with value” attribute_without_value]. If your shortcode needs to alter your content, simply wrap the content with the shortcode. [shortcode_id]Your content[/shortcode_id]
AyeShortcodes it’s a plugin developed with flexibility in mind. Besides the basic shortcode manager, it comes with a small assets dependecy manager that will allow you, as a developer, to manage the assets loaded on the website ( both from plugin and theme ). This will optimize the page and avoid loading it with unused/duplicate assets. The following code will help you setup your theme to be compatible with this plugin, follow the code comments // Check if AyeShortcodes plugin exists if(class_exists('\Aye\Shortcodes\Core')) { // Tell AyeShortcode plugin that you use the theme mode add_filter('aye_shortcodes_theme_mode', '__return_true'); // Access core class, if you don't need it you can delete it global $aye_shortcodes; // Let the plugin know all the shortcodes your theme is compatible with add_filter('aye_shortcodes_available_filter', function($array) { return array('column', 'label'); }); // Exclude assets from plugin if they are already bundled in the theme ( ex. Exclude 'bootstrap-columns' beacause you theme already use bootstrap ). add_filter('aye_shortcodes_style_assets', function($array) { return array('bootstrap-columns'); }); } See the markup generated by each shortcode on /assets/dev/markup.html.

Ratings

0
0 reviews

Rating breakdown

Details Information

Version

0.1

First Released

01 Nov, 2016

Total Downloads

400

Wordpress Version

3.0.1 or higher

Tested up to:

4.6.16

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.