The shortcode for the profile detail page is easy to install and use. It allows for you to add specific IDs and classes that you can style with CSS to get the profile looking the way you want it. Continue Reading →
Search Results for: short code
WP-Members 2.9.1 Release
It was only two short weeks ago that 2.9.0 was put into production. As some of you know, I do live in fear of releasing updates. Even though I test and evaluate prior to a release, there is always something that comes up after the fact. With the significant rebuild of the form building function in 2.9.0, I was especially concerned about how smooth the process would be. Continue Reading →
WP-Members 2.9.0 release
WP-Members 2.9.0 is finally complete and is being released this evening. This is a significant update with some major changes to the form building functions, the way the plugin initializes, and a host of other updates.
For most people, the form building function updates should be invisible. The only place I expect some challenges is for people who utilize filters on their forms. And even then, unless your filter is complex or involves line breaks in the search/replace strings, you should not see any differences.
For those that would like to test just the form building functions, you can do so with a pluggable file. Information on this is available on the beta release announcement.
Here is a list of changes included in this update:
Major updates
- New form building functions include new hooks and a more customizable form building process.
- Form functions moved from wp-members-dialogs.php to new file forms.php.
- Sidebar login form also rebuilt in the same way the login and register forms were changed.
- Legacy (old table based) forms completely removed in 2.9.
- Updates to error and dialog messages – removed unnecessary html tags.
Changes in wp-members-core.php
- updated calling of wpmem_test_shortcode, now it works like has_shortcode, put off deprecating at this time.
- updated shortcode to include tos page, allow for new tags (wpmem_field, wpmem_logged_in) (added new shortcode calls in wp-members.php), and accept id attribute for fields. Added $tag argument, can use shortcode_atts_{$shortcode} filter.
- moved wpmem_test_shortcode to utilities.php.
- added new action hooks: wpmem_pwd_change and wpmem_pwd_reset.
- added new filter hook: wpmem_regchk.
Changes in wp-members.php
- a pretty major overhaul of this file. Moved all but four declarations that weren’t already in functions into the init function. Only two constants are declared before the function. This initialization comes after the theme is setup, so pre-initilization needs, such as loading pluggable functions can be declared in the theme’s functions.php file. Pluggable functions do not need to be loaded only from the wp-members-pluggable.php file.
- The file name of the wp-members-pluggable.php file is loaded in a filter hook – wpmem_plugins_file, so you could call it something else or load it from another location.
- New action hooks: wpmem_pre_init, wpmem_after_init, wpmem_pre_admin_init, wpmem_after_admin_init.
- New filter hook: wpmem_settings.
Miscellaneous Changes
- Updates to the html for some of the admin to better fit the new WP admin layout. Old html was compatible, but the new works better.
- Updates to the options tab to better group options.
- Updates to native (wp-login.php) registration to include require field indication.
- Review of output, localized a few missed strings.
- Implementation of changes in localization of field names. English values are now stored in the db (except for custom fields – that would be whatever language the user creates the field as). Fields are then translated when displayed, rather than stored as translated strings.
- Updated user profile to fix some issues with checkbox and required fields – users.php.
- Updated user export to include wp_users table fields user_url, user_nicename, and display_name fields.
- Code cleanup in wpmem_block function.
- Updated autoexcerpt function.
- New filter hooks for post editor meta box titles: wpmem_admin_post_meta_title, wpmem_admin_page_meta_title.
- Some updates to existing stylesheets.
- Added new stylesheets, including two with non-floated elements. Generic, non-floated stylesheet new default for fresh installs.
You can get the new release here.
WP-Members 2.9.0 Beta Release Available
WP-Members 2.9.0 is nearly done and is now available for testing. This version has been in the works for quite some time. I started the build early last fall. It has taken some time to get everything up to the point where the package is really ready because I have incorporated a number of new features that required some major code overhaul in a few places. Continue Reading →
wpmem_logout_link
Description
This filter hook allows you to change the URL that is used to log a user out. The default link is the result of the WP function home_url() plus the /?a=logout querystring, such as http://yoursite.com/?a=logout.
If you need/want to change this URL to something else (such as using the WP default logout process or some other process), this hook will allow you to change the link returned for logout.
This link is used by the sidebar widget, the display status function, and in the logged in state of various shortcode pages (login and register).
Useage
add_filter( 'wpmem_logout_link', function ( $string ) {
return "https://mysite.com/?a=logout";
});