> Insert wordpress plugin resources analysis

insert wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name insert
Version 0.1.0
Author Ryan Van Etten
Rating 0
Last updated 2014-01-30 07:43:00
Downloads
222
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
insert plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

insert plugin added 1 bytes of resources to the Home page and 7 bytes of resources to the sample Post page.

insert plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! insert plugin ads no tables to your Wordpress blog database.

Usage

Use the [insert] shortcode inside posts or anywhere else that processes shortcodes.

[insert] shortcode attributes

  • query - sets up a new WP_Query via get_posts()
  • data - data to pass to actions
  • action - action to run, runs for each post if applicable
  • filter - filter to run, runs for each post if applicable
  • template - template to load via locate_template()

All attributes are optional and can be used in combination to yield powerful abilities.

Abilities

Possibilities with [insert] are endless. Practical uses include:

  • Insert posts into posts
  • Insert hooks into posts
  • Insert posts into widgets
  • Run action hooks via widgets
  • Load templates via widgets

Examples

Insert a template

[insert template="branding.php"]<pre><code></code></pre>

Insert an action

[insert action="dostuff"]<pre><code></code></pre>

Pass data to an action

[insert data="field=slug&value=example&tax=category" action="dostuff"]<pre><code></code></pre>

The action receives data as an array.

add_action('dostuff', 'print_r');<pre><code></code></pre>

Insert a page via template

[insert query="name=about&post_type=page" template="entry.php"]<pre><code></code></pre>

Insert a page via action

This sets up the query and triggers the action.

[insert query="name=about&post_type=page" action="dostuff"]<pre><code></code></pre>

WP template tags are available inside the action.

add_action('dostuff', 'the_title');<pre><code></code></pre>

Github

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Purple Pastels screenshot

Purple Pastels

by: esmi

86023
100%
Preus screenshot

Preus

by: rohitink

38023
60%