The WP-Members User List extension has been updated to version 2.1.2.
This update is a low priority release. It essentially focuses on adding the front-end user editing as an experimental feature.
Continue Reading →Home of WP-Members, The Original WordPress Membership Plugin
Chad Butler · ·
The WP-Members User List extension has been updated to version 2.1.2.
This update is a low priority release. It essentially focuses on adding the front-end user editing as an experimental feature.
Continue Reading →Chad Butler · ·
The WP-Members User List has received an update today. This is version 2.1.1.
This version is a bug fix from the 2.1.0 release. It changes some of the comparison operators used for checking various settings and options and corrects problems introduced in 2.1.0. Specifically, this addresses the fact that the search form will not show even if turned on (because the logical comparison checking the setting is faulty in 2.1.0).
Chad Butler · ·
I chose the basic email icon that is in the WP dashicons, but there are a couple of dashicon alternatives. And certainly, you could modify this code snippet to use any type of image/icon, such as font awesome. I used the WP dashicons because they are already loaded.
Adding the icon itself (without the link) is nothing more than adding the following span tag to the user profile:
<span class="dashicons dashicons-email"></span>
Adding to the user list view can be done with the wpmem_ul_user_rows
filter. There is a verbose example below.
add_filter( 'wpmem_ul_user_rows', function( $rows, $list_id ) { // User ID is a field in the $rows array, get it as $user_id. $user_id = $rows['ID']; // User email will be in the $rows array by its meta key (see WP-Members Fields tab). // HOWEVER, it will have a div wrapper, so we'll strip that out first. (I put them // in variables to reuse later when we rewrap the field before returnning). $user_email = $rows['user_email']; $wrapper_start = '<div class="user_email">'; $wrapper_end = '</div>'; $raw_email = str_replace( array( $wrapper_start, $wrapper_end ), array( '', '' ), $user_email ); // Get the dashicon. $icon = '<span class="dashicons dashicons-email"></span>'; // Linked icon with the email text. $email_w_icon = '<a href="mailto:' . $raw_email . '">' . $icon . '</a> ' . $raw_email; // Put the div tag back. $rows['user_email'] = $wrapper_start . $email_w_icon . $wrapper_end; // Return the filtered result. return $rows; }, 10, 2 );
Chad Butler · ·
WP-Members User List version 1.9.5 has been released. This update includes a number of updates including some security upgrades. Continue Reading →
Chad Butler · ·
This article describes a custom code snippet that will change the search form for the User List. It flips the field order (to “Search by” first and “Search for” second). The second thing it does is apply some jQuery to change the input type for “Search for”.
If the “Search by” field represents a checkbox, multiple checkbox, select, multiple select, or radio field as its WP-Members field type, then the “Search for” is changed to a dropdown selection of the possible values of that field. Continue Reading →
Ready to get started?