Search Results for: short code
Use jQuery to create a Log In/Log Out menu link
This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..
This simple tutorial will help you create a Log In/Log Out menu link that will display a link to the login page when the user is not logged in and a link to log out when they are logged in. This has now been incorporated into the plugin as a standard feature - all you need to do is add a login link to the menu and give it a custom class of "wpmem_loginout". See documentation on this feature. This tutorial remains primarily for informational and educational purposes OR if you'd simply like to customize the login/out menu item. Continue Reading →
WP-Members 3.1.9
This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..
The WP-Members 3.1.9 release should clean up some loose ends before the next major update (where there will be some settings changes and some other feature changes). There are not any major changes in 3.1.9 that would prevent rolling back to a previous version. Here's an overview of the changes in this release. Continue Reading →
WP-Members 3.1.8
This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..
WP-Members 3.1.8 is complete and is now available for upgrading. Here is what's in store for you in this new release: Continue Reading →
wpmem_export_args
Description
Filters the default settings for WP-Members' user export process.
Defaults:
$defaults = array( 'export' => 'all', 'filename' => 'wp-members-user-export-' . date( "Y-m-d" ) . '.csv', 'fields' => $export_fields, // (from wpmem_export_fields fitler) 'entity_decode' => false, 'date_format' => 'Y-m-d', // Use PHP date format 'required_caps' => 'list_users', // WP capability required to export 'export_fields' => '', // Deprecated 3.4.0, use 'fields' instead. 'exclude_fields' => '', // Deprecated 3.4.0, use the wpmem_export_fields filter hook instead. );
Parameters
$args
(array) (required) An array of any defaults being changed.
$tag
(string) (optional) The export being performed, default value: "default
"
Example
/** * This example sets the export function to decode HTML entities * in the export. */ add_filter( 'wpmem_export_args', 'my_export_args' ); function my_export_args( $args ) { $args['entity_decode'] = true; return $args; }
Changelog
- Introduced in version 2.9.7
- 3.4.0 Filters all defaults, then uses
wp_parse_args()
to fill missing defaults - 3.4.0 Added
$tag
parameter - 3.4.0 Deprecated
exclude_fields
(unset usingwpmem_export_fields
instead) - 3.4.0 Deprecated
export_fields
, usefields
instead
Source
wpmem_export_args
is located in includes/class-wp-members-user-export.php