Created
January 9, 2021 16:04
-
-
Save gvgvgvijayan/49ba0310055f2cfd7d2287767d1f7815 to your computer and use it in GitHub Desktop.
This gist is used in the tutorial https://www.vijayan.in/how-to-create-custom-table-list-in-wordpress-admin-page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
... | |
/** | |
* Get list columns. | |
* | |
* @return array | |
*/ | |
public function get_columns() { | |
return array( | |
'cb' => '<input type="checkbox"/>', | |
'title' => __( 'Title', 'admin-table-tut' ), | |
'type' => __( 'Type', 'admin-table-tut' ), | |
'author' => __( 'Author', 'admin-table-tut' ), | |
'date' => __( 'Date', 'admin-table-tut' ), | |
); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment