'kopa-editor-widget', 'description' => __('Show user in role with avatar', 'ad-mag-lite')); $control_ops = array('width' => 'auto', 'height' => 'auto'); parent::__construct('Ad_Mag_Lite_Editor', __('(AdMag) Editor', 'ad-mag-lite'), $widget_ops, $control_ops); } public function widget( $args, $instance ) { extract( $args ); $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ); $role = $instance['role']; $number = $instance['number']; echo wp_kses_post($before_widget); ?>

$role, 'number' => $number ); $blogusers = get_users( $args ); ?>

'', 'role' => 'author', 'number' => 5 ); $instance = wp_parse_args((array) $instance, $default); $title = strip_tags($instance['title']); $form['role'] = $instance['role']; $form['number'] = esc_attr($instance['number']); ?>