Plugin Directory

Changeset 1200976


Ignore:
Timestamp:
07/17/2015 12:23:34 PM (11 years ago)
Author:
andrewklimek
Message:

Commented out the user role conditional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • re-welcome/trunk/re-welcome.php

    r1195129 r1200976  
    3636}
    3737function rewelcome_row_action($actions, $user_object) {
    38     if (in_array('pending', $user_object->roles))
    39     {
    40         $nonce = wp_create_nonce( 'rewelcome' );
    41         $link = admin_url( "users.php?user={$user_object->ID}&_wpnonce=$nonce" );
    42         $actions['rewelcome'] = "<a href='$link'>Resend Welcome Email</a>";
    43     }
     38//  if (in_array('pending', $user_object->roles)) { Only show for specific roles, such as Formidable Pro pending status
     39    $nonce = wp_create_nonce( 'rewelcome' );
     40    $link = admin_url( "users.php?user={$user_object->ID}&_wpnonce=$nonce" );
     41    $actions['rewelcome'] = "<a href='$link'>Resend Welcome Email</a>";
     42//  }
    4443    return $actions;
    4544}
Note: See TracChangeset for help on using the changeset viewer.