WordPress plugin intelligence profile

We The People

Easily embed White House petitions from We The People into your WordPress site via shortcodes and widgets.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.1
Current version2.0
WordPress coverageTested up to WordPress 4.1
Minimum stackWP 3.5.1 · PHP —
Directory statusactive
Last directory update25 Jan 201511y 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 We The People version 2.0 as active, updated 11y ago and tested up to WordPress 4.1.

Overview

About this plugin

In May 2013 the White House released an API for We The People, a petition application designed to give citizens a direct line to the White House. The White House has committed to issue an official, public response to petitions that cross a particular signature threshold.

This plugin allows WordPress site owners to search and embed petitions from We The People into WordPress. Perhaps you’re writing an opinion piece on a petition and want real-time statistics on signatures and any response from the White House. Maybe you’re a supporter of a particular issue and want to feature it on your sidebar to help promote awareness.

The ease of WordPress with the totally customizable templates of the We The People plugin give you the power to share what’s important to you.

Special thanks

Special thanks goes out to the White House web team for building and opening the We The People API for the general public and for inviting Buckeye Interactive to the National Day of Civic Hacking to premiere this plugin.

Usage

The plugin includes a number of different ways to embed petitions from We The People:

Shortcodes

The simplest way to get started is through WordPress shortcodes. The syntax is as easy as: [wtp-petition id="123"].

Petitions IDs aren’t especially easy to uncover from the We The People site so the We The People plugin includes a TinyMCE button to help you. Clicking the button will open an overlay that will let you search the We The People petitions by title to find your issue. You may also limit your search results to open petitions.

Widget

To add a We The People petition to a WordPress dynamic sidebar go to Appearance > Widgets and drag a “WTP Petition” widget into the desired sidebar. Like the TinyMCE button the widget allows you to search for your desired petition by title and show only open petitions.

$GLOBALS[‘we-the-people’] global variable (advanced)

If you’re a developer and need more complete access to the We The People API you can use the api() method available through the $GLOBALS['we-the-people'] global variable. *) and an array of arguments to pass to the API.

0, the plugin used a global $we_the_people variable. If you did customizations to We The People templates you’ll want to be sure to update this reference.

Full API documentation is available on the We The People API page. More developer-oriented documentation can be found in this plugin’s GitHub repository.

Styling the petition display

We The People has a built-in petition template but makes it easy to override in your theme. php into your theme to get started but a very basic custom template might look something like this:

> -->

We The People uses the following order to determine which template to use when displaying a petition:

Shortcodes:

  • wtp-petition-{id}.php (child theme)
  • wtp-petition.php (child theme)
  • wtp-petition-{id}.php (parent theme)
  • wtp-petition.php (parent theme)
  • templates/wtp-petition.php (plugin)

Widgets:

  • wtp-petition-widget-{id}.php (child theme)
  • wtp-petition-widget.php (child theme)
  • wtp-petition-widget-{id}.php (parent theme)
  • wtp-petition-widget.php (parent theme)
  • templates/wtp-petition-widget.php (plugin)
WordPress.org metadata

Plugin tags

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

  • we the people
  • white house
  • america
  • democracy
  • petition
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.1

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

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.1
Minimum requirementsWordPress 3.5.1 · PHP not listed
Update activity25 Jan 201511y 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.