WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WoW Armory Character

Pulls character information from the WoW community API and displays it.

  1. Upload 'wow-armory-character' to the /wp-content/plugins/ directory
  2. Ensure your webserver has write permissions to the /wp-content/plugins/wow-armory-character/cache directory
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Configure a widget and add it to your site or use the [armory-character] shortcode.

Shortcode Use

The shortcode can be added to any page or post and can be configured in an identical fashion to the widget. At a minimum you will need to specify the realm and character name for it to work - though this will assume that you wish to show all the details of character from the EU region in English.

[armory-character realm="Terokkar" name="Grokknar"]

The configuration parameters available to use are:

  • region - EU, US, KO and TW currently supported
  • show_portrait - 1 or 0
  • show_title - 1 or 0
  • show_talents - 1 or 0
  • show_items - 1 or 0
  • show_profs - This is a bitwise field. To get the setting you want use add together the numbers below.
    • 1 - Show profession badges
    • 2 - Show profession completion bars
    • 4 - Show seconday professions
  • show_achievs - This is a bitwise field. To get the setting you want use add together the numbers below.
    • 1 - Show achievement bar
    • 2 - Show achievement list
    • 4 - Show descriptions on the achievement list.
  • locale - en_GB, en_US, de_DE, es_ES, es_MX, fr_FR, ru_RU, ko_KR, zh_TW or zh_CN

Note: Certain locale choices are only available when selecting some regions.

Available Filters

For more capable/adventurous developers there are a number of hooks that allow you to change the way the plugin functions without altering it's code. This means you get to upgrade in the future without worrying about breaking any changes you may have made.

wow-armory-character-template
Allows you to specify an alternate template file to use to display your profile. Defaults to view-wow-armory-character.php

function my_function_name($file_path) {
  // e.g. return realpath(__FILE__) . '/view-wow-armory-character.php'
  return "THE_PATH_TO_YOUR_TEMPLATE_FILE";
}
add_filter('wow-armory-character-template','my_function_name');

wow-armory-character-display
Your profile once the template has been processed. It may be quicker to alter the display at runtime rather than duplicate the template when making only minor changes. As well as the output that will be displayed the Character data as retireved from the Community API is also passed. This should allow you to make any changes you need.

function my_function_name($output, $character_data) {
  // Do something to the $output, perhaps using the $character_data
  return $output;
}
add_filter('wow-armory-character-display','my_function_name');

Requires: 3.0.0 or higher
Compatible up to: 3.4.2
Last Updated: 2012-10-4
Downloads: 4,205

Ratings

4 stars
4.4 out of 5 stars

Support

1 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,2,2 100,2,2
100,1,1
100,1,1 100,1,1
50,2,1
100,1,1
100,1,1