WordPress.org

Ready to get started?Download WordPress

Forums

BadgeOS
[resolved] Check a given post? (2 posts)

  1. Martin
    Member
    Posted 5 months ago #

    On v1.30 there's an addition:
    Added: badgeos_is_achievement() to check if a given $post or $post_id is a BadgeOS achievement.

    What exactly does this mean and how is it used?

    http://wordpress.org/plugins/badgeos/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 5 months ago #

    without actually looking at the code, I imagine it's just a validation helper to make sure the post/ID that is passed in has a post type of one of your registered achievement types.

    Remember all the achievement types are custom post types. It'd return false if you still had the "sample page" page in your install, which defaults to ID 2. Pass that in, it'd return false.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.