• 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_user_rows

wpmem_ul_user_rows

Description

This filter allows you to filter each user’s data to be displayed in the user list as an array.

Parameters

$rows
(array) (required) An array of the user’s data.

Changelog

Introduced in version 1.5.

Source

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

Usage

add_filter( 'wpmem_ul_user_rows', 'my_ul_user_rows' );

function my_ul_user_rows( $rows ) {

	/*
	 * This example adds a row to the user's profile in the 
	 * main user list that links to a hypothetical contact 
	 * page that needs the user's ID (which is a field 
	 * available in the array).
	 */
	 
	 $link = site_url() . 'contact/?contact_id=' . $rows['ID'];
	 
	 $name = $rows['first_name'];
	 
	 $rows['link'] = '<a href="' . $link . '">' . $name .  '</a>';

	return $rows;
}

Code Snippet Library [Subscriber Content]

  • User List URL Rewrite for Nicer Profile URLs
  • Create an option for users to exclude a specific field from the User List profile
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_user_rows

  • This topic has 0 replies, 1 voice, and was last updated 5 years, 8 months ago by Chad Butler.
Viewing 0 reply threads
  • Author
    Posts
    • June 7, 2015 at 2:45 pm #8044
      Chad Butler
      Keymaster

      Description This filter allows you to filter each user’s data to be displayed in the user list as an array. Parameters $rows (array) (required) An arr
      [See the full post at: wpmem_ul_user_rows]

  • 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