'options-general.php?page=register-plus' ) ); } // Modifies the array of dashboard widgets and adds this plugin's function add_widget( $widgets ) { global $wp_registered_widgets; if ( !isset($wp_registered_widgets['regplus_invite_tracking']) ) return $widgets; array_splice( $widgets, 2, 0, 'regplus_invite_tracking' ); return $widgets; } // Output the widget contents function widget( $args ) { extract( $args, EXTR_SKIP ); echo $before_widget; echo $before_title; echo $widget_name; echo $after_title; global $wpdb; $regplus = get_option( 'register_plus' ); $codes = $regplus['codepass']; $usercodes = array(); foreach($codes as $code){ $users = $wpdb->get_results( "SELECT user_id FROM $wpdb->usermeta WHERE meta_key='invite_code' AND meta_value='$code'" ); echo '