WordPress plugin intelligence profile

insert

Insert posts, hooks, or templates.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.8
Current version0.1.0
WordPress coverageTested up to WordPress 3.8
Minimum stackWP 2.7.0 · PHP —
Directory statusactive
Last directory update30 Jan 201412y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records insert version 0.1.0 as active, updated 12y ago and tested up to WordPress 3.8.

Overview

About this plugin

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

`

php”]

`

Insert an action

`

[insert action=”dostuff”]

`

Pass data to an action

`

[insert data=”field=slug&value=example&tax=category” action=”dostuff”]

`

The action receives data as an array.

`

add_action(‘dostuff’, ‘print_r’);

`

Insert a page via template

`

php”]

`

Insert a page via action

This sets up the query and triggers the action.

`

[insert query=”name=about&post_type=page” action=”dostuff”]

`

WP template tags are available inside the action.

`

add_action(‘dostuff’, ‘the_title’);

`

Github

  • github.com/ryanve/insert
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • insert
  • shortcode
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.8
Minimum requirementsWordPress 2.7.0 · PHP not listed
Update activity30 Jan 201412y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.