• 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 Hooks » wpmem_ul_profile_args

wpmem_ul_profile_args

Description

This filter allows you to pass arguments to the User List profile function to override default values that are used in the layout. The wpmem_do_ul_profile function uses the wp_parse_args function to merge arguments passed through this filter with the following defaults:

$defaults = shortcode_atts( array(
	'fields'     => 'user_login,user_email,first_name,last_name,city,thestate',
	'id'         => ( isset( $_GET['uid'] ) ) ? $_GET['uid'] : '',
	'div'        => true,
	'div_id'     => '',
	'div_class'  => 'field-name',
	'span'       => false,
	'span_id'    => '',
	'span_class' => '',
	'avatar'     => '80',
	'labels'     => false,
	'show_empty' => true,
	
	'main_div_before' => '<div id="user-list-profile">',
	'main_div_after'  => '</div>'
), $atts, $tag );

Parameters

none

Changelog

Introduced in extension version 1.4

Source

wpmem_ul_profile_args is located in user-profile.php

Usage

add_filter( 'wpmem_ul_profile_args', 'my_profile_args' );

function my_profile_args()
{
	/**
	 * This example changes defaults to show
	 * lables and not display empty fields
	 */
	$args = array(
		'labels'      => true,
		'show_empty'  => false
	);

	return $args;
}

Code Snippet Library [Subscriber Content]

  • User List URL Rewrite for Nicer Profile URLs
See a list of all filter and action hooks

Ready to get started?

Join Today!

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

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