WordPress.org

Ready to get started?Download WordPress

Forums

Custom List Table Example
Great example, one suggestion. (1 post)

4 stars
  1. Zane Matthew
    Member
    Posted 9 months ago #

    Don't bother Googling for how to use the WP_List_Table class, rather just use this plugin as an example instead!

    Just one suggestion, a function like the one below would reduce the redundancy of having to type out the columns keys.


    function get_column_keys(){
    $data = $this->get_columns();
    unset( $data['cb'] );
    foreach( $data as $k => $v ){
    $keys[] = $k;
    }
    return $keys;
    }

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.