I am developing a new Plugin and I get the database value into our plugin

function But How to pass these data to view file.I Used following code into the

plugin main file.

            Plugin Name: All Attendees
            Plugin URI: http://my-awesomeness-emporium.com
            Description: a plugin to create awesomeness and spread joy
            Version: 1.2
            Author: Mr. Awesome
            Author URI: http://mrtotallyawesome.com
            License: GPL2


    add_action('init', 'my_register_styles');
    function my_register_styles() {
        add_action('admin_menu', 'all_attendees');
    function all_attendees(){

        $wpdb = EventPlus::getRegistry()->db->getDb();
        $sql = "SELECT id,reg_type,quantity,event_id,lname,fname,payment,payment_status,email FROM wp_evr_attendee ORDER BY id DESC Limit 30";
        $rows = $wpdb->get_results($sql);
        echo "<pre>";print_r($rows);die;


Read more here: How to display data into Admin panel which is generated by plugin function in wordpress


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: