WP_List_Table in frontend how to style with Bootstrap4

by fefe   Last Updated October 19, 2019 10:08 AM - source

I show in frontend a custom table created as extending WP_List_Table as it follows.

add_action('init', array($this, 'frontendMyTable'));

   public function frontendMyTable()
    {
        if (!is_admin()) {
            require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table.php');
            require_once(ABSPATH . 'wp-admin/includes/screen.php');
            require_once(ABSPATH . 'wp-admin/includes/class-wp-screen.php');
            require_once(ABSPATH . 'wp-admin/includes/template.php');

            global $hook_suffix;
            global $myTable;
            $myTable = new My_Lists();
        }
    }

And I would like to modify the html markup to use Bootstrap 4 stylesheets. What are the essential code parts where I can do that? Or is it possible to achieve this requirement?



Related Questions



How to mount a loop in a different layout?

Updated July 21, 2015 13:03 PM

3 boxes in container middle box in center (bootstrap 4)

Updated September 17, 2018 10:08 AM


Hamburger not changing when clicked

Updated October 04, 2018 09:08 AM