WordPress plugin intelligence profile

Brickset API

Display your favorite LEGO® set information on your website using the Brickset API.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.1
Current version1.4.1
WordPress coverageTested up to WordPress 4.1
Minimum stackWP 3.5 · PHP —
Directory statusactive
Last directory update26 Dec 201411y 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 Brickset API version 1.4.1 as active, updated 11y ago and tested up to WordPress 4.1.

Overview

About this plugin

This plugin is an implementation of the Brickset Webservice. It includes methods to get LEGO® set and theme data from Brickset as well as pre-formated methods to display set data. The set data requested is cached daily to reduce HTTP requests and page load time.

Please visit Brickset for more information on the webservice. You can obtain an API key from Brickset.

The main development is all happening on GitHub.

com plugin. LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this plugin.

Oembed

You can paste a Brickset set or theme url into your post or page. Once you publish the post or page information about the set or theme will be displayed. Two example URLs are below.

  • Set URL: http://brickset.com/detail/?Set=79003-1
  • Theme URL: http://brickset.com/browse/themes/?theme=The%20Hobbit

Template Tags

The plugin has numerous template tags you are able to use in your theme. They are listed below with a short description.

  • brickset_themes(); outputs a list of all themes.
  • brickset_subthemes( $theme ); outputs a table of all subthemes of the theme specified, the number of sets, and years available.
  • brickset_theme_years( $theme ); outputs a table of all the years the specified theme was available and the number of sets each year.
  • brickset_popular_searches(); outputs a list of the most popular search terms on Brickset.com.
  • brickset_updated_since( $date ); outputs a table of the sets updated since the date specified. The table includes thumbnail, set name and set number.
  • brickset_set_number( $set ); outputs a list of details about the sets specified. More than one set can be requested by separating the set numbers with a comma, e.g. ‘1380,10240’.

Shortcode

The plugin has a shortcode you may use in your posts and pages to display information about a set or sets.

  • [bs_set number='XXX'] outputs information about a specific set. Thumbnail, set name, set number, pieces, theme, subtheme and year. You can display multiple sets by seperating the set numbers with a comma.

Widgets

The plugin has four widgets you can activate in your theme. com and the second to display the details about a specific set. The third allows you to show off the total count of your minifigs.

The last widget displays a count of sets produced in each year for a given theme.

Advanced Use

This example shows how to get the data about a specific set. You can find the developer docs here.

-

Instantiate the class.

$brickset = new BricksetAPISearch();

-

Pass a set number to the get_by_number method.

$set_data = $brickset->get_by_number( ‘8014’ );

-

Test for an error

if( is_wp_error( $set_data ) {

echo $set_data->get_error_message;

}

-

Display the results how you like. This will display the set’s theme.

else {

echo $set_data->theme;

}

Road Map

  • Template tags to display sets specific to a user.
  • Caching of images

You can follow all the open feature requests and enhancements on GitHub.

WordPress.org metadata

Plugin tags

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

  • brick
  • brickset
  • lego
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 · PHP not listed
Update activity26 Dec 201411y 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.