Creating/Retrieving Achievment Types programatically

///Creating/Retrieving Achievment Types programatically
Creating/Retrieving Achievment Types programatically 2019-03-30T16:17:12-04:00

In the event you want to create or retrieve achievement types, we have functions to get you there.

badgeos_register_achievement_type( $singular_name, $plural_name )

Register a new achievement types for use in the rules engine. Note that in most cases we recommend programmatically inserting an “achievement-type” post instead, though.

badgeos_get_achievement_types()

Returns a multidimensional array of slug, single name and plural name for all registered achievement types.

badgeos_get_achievement_types_slugs()

Returns only the slugs for all registered achievement types.