Changeset 1200976
- Timestamp:
- 07/17/2015 12:23:34 PM (11 years ago)
- File:
-
- 1 edited
-
re-welcome/trunk/re-welcome.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
re-welcome/trunk/re-welcome.php
r1195129 r1200976 36 36 } 37 37 function 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 // } 44 43 return $actions; 45 44 }
Note: See TracChangeset
for help on using the changeset viewer.