From 065f79d886e84d136dafafbb0ae2b12512e34130 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 18 Dec 2017 13:28:26 -0500 Subject: [PATCH] Filter to get contact data was using events path 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/frontHooks.php b/setup/frontHooks.php index a121a5f..530bc7d 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -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; -- 2.17.1