Text Toggle

Under the Hood

The entire plugin is wrapped in a class statement, and requires a __construct() function to initialize everything.

The first block of three add_shortcode function calls define the three shortcodes provided by the plugin.

Each shortcode also has an associated JavaScript / JQuery script file and defined by the wp_register_script function. Each shortcode also uses the same CSS file as defined by the wp_register_style function. Note that all JS and CSS files are minimized.

The final statement, add_action, sets up a routine that adds information to the plugin description on the Plugin admin page. The associated routines are:

Share
The short URL of the present article is: http://www.terryobrien.me/kUWob

Page 7 of 7
First | Prev | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Next | Last
View All