confirm_delete_users() –

You appear to be a bot. Output may be restricted

Description

Usage

$bool = confirm_delete_users( $users );

Parameters

$users
( array ) required

Returns

bool

Source

File name: wordpress/wp-admin/includes/ms.php
Lines:

101 to 143 of 143
                /* translators: %s: Link to user's site. */
                printf( __( 'Site: %s' ), $user_site );
                ?>
							</li>
							<li><label><input type="radio" id="delete_option0" name="delete[<?php echo $details->userblog_id . '][' . $delete_user->ID; ?>]" value="delete" checked="checked" />
							<?php _e( 'Delete all content.' ); ?></label></li>
							<li><label><input type="radio" id="delete_option1" name="delete[<?php echo $details->userblog_id . '][' . $delete_user->ID; ?>]" value="reassign" />
							<?php _e( 'Attribute all content to:' ); ?></label>
							<?php echo $user_dropdown; ?></li>
						</ul>
						<?php
          }
        }
        echo '</fieldset></td></tr>';
      } else {
        ?>
				<td><p><?php _e( 'User has no sites or content and will be deleted.' ); ?></p></td>
			<?php } ?>
			</tr>
			<?php
    }
  }

  ?>
	</table>
	<?php
  
/** This action is documented in wp-admin/users.php */
  do_action( 'delete_user_form', $current_user, $allusers );

  if ( 1 === count( $users ) ) :
    ?>
		<p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, the user will be permanently removed.' ); ?></p>
	<?php else : ?>
		<p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, these users will be permanently removed.' ); ?></p>
		<?php
  endif;

  submit_button( __( 'Confirm Deletion' ), 'primary' );
  ?>
	</form>
	<?php
  return true;
}
 

 View on GitHub View on Trac