Skip to content

This BadgeOS Add-on adds a shortcode to show or hide content depending on if the user has earned a specific achievement

License

Notifications You must be signed in to change notification settings

konnektiv/badgeos-achievement-shortcode-add-on

Repository files navigation

BadgeOS Achievement Shortcode Add On

Contributors: konnektiv, chherbst
Tags: badge, badges, restrict, shortcode, access, hide, content, openbadges, shortcode, credly, OBI, mozilla, open badges, achievement, award, reward, engagement, submission, nomination, community, API, open credit, credit, plugin
Requires at least: WordPress 3.6.0, BadgeOS 1.4.0
Tested up to: 4.5.2
Stable tag: 1.0.4
License: GNU AGPLv3
License URI: http://www.gnu.org/licenses/agpl-3.0.html

This BadgeOS Add on adds a shortcode to show or hide content depending on if the user has earned a specific achievement.

Description

This BadgeOS Add on adds a shortcode to show or hide content depending on if the user has earned a specific achievement. Any content in a post or page enclosed in the shortcode [user_earned_achievement id="achievement_id"][/user_earned_achievement] will only be shown if the current user has already earned the achievement with the specified id. This shortcode is fully integrated with the BadgeOS shortcode insert button.

Note: You will need to install the free BadgeOS plugin™ (version 1.4 or higher) to use the BadgeOS Community Add-on.

Get the BadgeOS plugin.

This plugin was originally developed for the globe - Community of Digital Learning on behalf of GIZ.

Contact

Installation

  1. Upload, activate and configure the free BadgeOS plugin to WordPress.
  2. Upload 'BadgesOS-Achievement-Shortcode-Add-on' to the '/wp-content/plugins/' directory
  3. Activate the plugin through the 'Plugins' menu in WordPress

Changelog

1.0.4

  • Add closing shortcode surrounding current selection when using the BadgeOS shortcode insert button
  • Use select2 for the achievement id shortcode attribute

1.0.3

  • Finally fix translation domain

1.0.2

  • Fix translation domain & add gettext calls

1.0.1

  • Fix shortcode description & error message

1.0.0

  • Initial release

About

This BadgeOS Add-on adds a shortcode to show or hide content depending on if the user has earned a specific achievement

Resources

License

Stars

Watchers

Forks

Packages

No packages published