REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.19 KB
Close
/home/nshryvcy/taramarriagebureau.com/wp-content/plugins/ultimate-member/includes/ajax/class-users.php
Text
Base64
<?php namespace um\ajax; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Class Users * * @package um\ajax */ class Users { public function __construct() { add_action( 'wp_ajax_um_get_users', array( $this, 'get_users' ) ); } public function get_users() { UM()->admin()->check_ajax_nonce(); $search_request = ! empty( $_REQUEST['search'] ) ? sanitize_text_field( $_REQUEST['search'] ) : ''; $page = ! empty( $_REQUEST['page'] ) ? absint( $_REQUEST['page'] ) : 1; $per_page = 20; $args = array( 'fields' => array( 'ID', 'user_login' ), 'paged' => $page, 'number' => $per_page, ); if ( ! empty( $search_request ) ) { $args['search'] = '*' . $search_request . '*'; } $args = apply_filters( 'um_get_users_list_ajax_args', $args ); $users_query = new \WP_User_Query( $args ); $users = $users_query->get_results(); $total_count = $users_query->get_total(); if ( ! empty( $_REQUEST['avatar'] ) ) { foreach ( $users as $key => $user ) { $url = get_avatar_url( $user->ID ); $users[ $key ]->img = $url; } } wp_send_json_success( array( 'users' => $users, 'total_count' => $total_count, ) ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
class-forms.php
1.28 KB
lrw-r--r--
2025-04-30 03:17:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
class-init.php
1.33 KB
lrw-r--r--
2025-04-30 03:17:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
class-pages.php
1.86 KB
lrw-r--r--
2025-04-30 03:17:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
class-secure.php
28.14 KB
lrw-r--r--
2025-04-30 03:17:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
class-users.php
1.19 KB
lrw-r--r--
2025-04-30 03:17:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).