- htttps://www.brightwood.ie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// https://docs.memberpress.com/article/325-action-hooks-in-memberpress | |
add_action('mepr-event-create', 'listen_to_mepr_events'); | |
function listen_to_mepr_events($event) { | |
$obj = $event->get_data(); | |
//$obj might be a MeprTransaction object or a MeprSubscription object | |
if(!($obj instanceof MeprTransaction) && !($obj instanceof MeprSubscription)) { | |
return; // nothing here to do if we're not dealing with a txn or sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// https://docs.memberpress.com/article/325-action-hooks-in-memberpress | |
add_action('mepr-event-create', 'listen_to_mepr_events'); | |
function listen_to_mepr_events($event) { | |
$obj = $event->get_data(); | |
//$obj might be a MeprTransaction object or a MeprSubscription object | |
if(!($obj instanceof MeprTransaction) && !($obj instanceof MeprSubscription)) { |