WordPress.org

Ready to get started?Download WordPress

Forums

Achievements for WordPress
[resolved] Added Plugin not Triggering Achievement on Action (2 posts)

  1. piers184
    Member
    Posted 1 year ago #

    Howdy,

    I am trying to set achievements for GD Star Rating actions, but for some reason, the actions don't seem to be triggering the achievements. I followed your directions in these posts:

    http://wordpress.org/support/topic/api-14?replies=4
    http://wordpress.org/support/topic/trigger-on-wp_login?replies=4

    I am able to see actions and create achievements with these actions as triggers, but when I do the action, no achievement pops up.

    Here is the file I added to the extension folder:
    pastebin file

    I added the require statement for it to the end of the section with the other extension require statements in the achievements.php file.

    Any ideas what the problem may be?

    Thanks

    http://wordpress.org/extend/plugins/achievements/

  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    I added the require statement for it to the end of the section with the other extension require statements in the achievements.php file.

    Don't edit the plugin's files! Make your own mini-plugin to extend Achievements, otherwise you'll loose your changes when an update comes out. Look at what I suggested in the first link you quote in your post.

    Otherwise, I'd suggest you try making a helper plugin in mu-plugins, and try something really trivial. Hook a function to one of the actions you're trying to capture, and put some debug in the function, and then do the thing that triggers the action. See if your debug code is executed (i.e. stick a die() in with a custom message).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.