From: Laury GvR Date: Mon, 18 Dec 2017 18:28:26 +0000 (-0500) Subject: Filter to get contact data was using events path X-Git-Tag: v1.1.3^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=065f79d886e84d136dafafbb0ae2b12512e34130;p=WP-Plugins%2Fglm-member-db-contacts.git 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. --- 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;