Created
January 3, 2021 08:57
-
-
Save gvgvgvijayan/d0ec67659e1af844cd30f32a66cca0c3 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 | |
... | |
/** | |
* Draft_List_Table constructor. | |
*/ | |
public function __construct() { | |
parent::__construct( | |
array( | |
'singular' => 'Draft', | |
'plural' => 'Drafts', | |
'ajax' => false, | |
) | |
); | |
$this->allowed_post_types = $this->allowed_post_types(); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment