// Passing phone to Plugin Support Function
return glmMembersFilterPhone( $this->config, $phone );
});
+add_filter('glma_get_logged_in_contact', function() {
+ $contactUser = $this->config["loggedInUser"]["contactUser"];
+ if ( !$contactUser ) {
+ $contactUser = false;
+ }
+ return $contactUser;
+});
+add_filter('glma_get_member_type', function( $id ){
+ // Passing phone to Plugin Support Function
+ global $wpdb;
+ $type = $wpdb->get_var( "SELECT name FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX . "member_type WHERE id = "
+ . "(SELECT member_type FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX . "members WHERE id = $id) " );
+ return $type;
+});
+add_filter('glma_get_member_name', function( $id ){
+ // Passing phone to Plugin Support Function
+ global $wpdb;
+ $type = $wpdb->get_var( "SELECT name FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX . "members WHERE id = $id" );
+ return $type;
+});
function get_member_name( $id = 0 ) {
global $wpdb;