Hi! I'm a web designer, not so much a developer, but I can dabble a bit.
I've followed the tutorials from yourself and other users on how to hook into custom events that trigger awards.
My real issue is not with your app, but rather that I can't get my custom action to work.
$this->actions = array( 'ralcorInvite-run' => __( 'A player invites a fan.', 'dpa' ), );
Where the action is:
foreach ( $friends as $key => $friend ) $mail = wp_mail( $email, invfr_tokens_replacement( $subject, $_POST, $key ), invfr_tokens_replacement( $message, $_POST, $key ), invfr_tokens_replacement( $headers, $_POST, $key ) ); do_action('ralcorInvite-run'); if( $mail ) echo 'sent'; }
Everything from the plugin I'm trying to nest the action into is working, but is not triggering the action, and not awarding the achievement. It's not tied to any actual function, it's just trying to do the action.
Apologies, as PHP is not easy for me.
Any help would be appreciated. Thank you very much.