• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Store
    • Cart
    • Checkout
  • Blog
    • Basics [Free]
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Contact
  • Sign In
  • Show Search
Hide Search
Home » Plugins » WP-Members » Documentation » Filter and Action Hooks » wpmem_ul_settings_args

wpmem_ul_settings_args

Description

This filter allows you to pass arguments to the User List to override default values set in the admin or passed through the shortcode. The wpmem_list_users function uses the wp_parse_args function to merge arguments passed through this filter with the following defaults:

$defaults = shortcode_atts( array(
 'role' => $defaults['role'],
 'exclude' => $defaults['exclude'],
 'number' => $defaults['number'],
 'search' => $defaults['search'],
 'search_by' => $defaults['search_by'],
 'nav' => $defaults['nav'],
 'fields' => 'user_login,member_since',
 'avatar' => $defaults['avatar'],
 'h2' => $defaults['h2'],
 'order_by' => $defaults['order_by'],
 'order' => $defaults['order'],
 'show_titles' => $defaults['show_titles'],
 'show_empty' => $defaults['show_empty'],
 'meta_key' => $defaults['meta_key'],
 'meta_val' => '',
 'profile_page' => $defaults['profile_page']
), $atts, $tag );

Parameters

$args
(array) (required) An array of arguments that are to override form $defaults.

Changelog

Introduced in extension version 1.4

Source

wpmem_ul_settings_args is located in wp-members-user-list.php

Usage

add_filter( 'wpmem_ul_settings_args', 'my_ul_settings' );

function my_ul_settings() {

	/** anything that is done here to filter the results **/

	/** return array settings being changed */
	return array( $array_settings );
}

Code Snippet Library [Subscriber Content]

  • Create an option for users to opt out of User Directory
See a list of all filter and action hooks

Welcome to RocketGeek Interactive › Forums › Plugins › WP-Members › WP-Members Documentation › Filter and Action Hooks › wpmem_ul_settings_args

  • This topic has 0 replies, 1 voice, and was last updated 6 years, 7 months ago by Chad Butler.
Viewing 0 reply threads
  • Author
    Posts
    • July 3, 2014 at 10:34 am #5310
      Chad Butler
      Keymaster

      Description This filter allows you to pass arguments to the User List to override default values set in the admin or passed through the shortcode. The
      [See the full post at: wpmem_ul_settings_args]

  • Author
    Posts
Viewing 0 reply threads
  • You must be logged in to reply to this topic.
Log In

Ready to get started?

Join Today!

© 2021 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Refund Policy