Filter to get contact data was using events path
authorLaury GvR <laury@gaslightmedia.com>
Mon, 18 Dec 2017 18:28:26 +0000 (13:28 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 18 Dec 2017 18:28:26 +0000 (13:28 -0500)
The filter to get contact data was using the wrong constant to
look for its path; probably due to code being copied from the
events plugin.

setup/frontHooks.php

index a121a5f..530bc7d 100644 (file)
@@ -76,7 +76,7 @@ if (isset($this->config['addOns']['glm-member-db'])) {
 }
 
 add_filter( 'glm-member-db-contacts-get-contact-data', function( $contact_id ){
-    require_once GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH . '/data/dataContacts.php';
+    require_once GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH . '/data/dataContacts.php';
     $contactData = new GlmDataContacts( $this->wpdb, $this->config );
     $contacts    = $contactData->getEntry( $contact_id );
     return $contacts;