checking meta in users grid
-
Hi, I have recently upgraded to 2.1.11 (from the old version, 2.0.56). Previously I had a function in members-grid.php which checked for content in the ‘description’ field, and didn’t display the member card if this field was empty. Now members-grid has changed to include a load of js, my function no longer works.
This was my previous function, starting at line 19:
===============================
um_fetch_user( $member ); ?>
<?php /*added by angus to hide new signups with no description */ ?>
<?php
$description = get_user_meta( um_user( ‘ID’ ), ‘description’, true );if ( ! empty( $description ) ) { ?>
==============================
Now I have this, but it doesn’t work:
================================
<# if ( data.length > 0 ) { #>
<# _.each( data, function( user, key, list ) { #>
<?php /*added by Angus to check if there is anything in ‘description’*/
$user_id = um_user(‘ID’);
um_fetch_user( $user_id );
$description = um_user(‘description’);
if ( ! empty( $description ) ) { /*end added by Angus*/ ?>============================
Can you tell me what needs to change here? or point me to any documentation about this?
Regards
Angus Ryall
The topic ‘checking meta in users grid’ is closed to new replies.