Created
January 3, 2021 08:29
-
-
Save gvgvgvijayan/d8d6d761e309a286fd482721c4d0f526 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 | |
... | |
/** | |
* Const to declare number of posts to show per page in the table. | |
*/ | |
const POSTS_PER_PAGE = 10; | |
/** | |
* Property to store post types | |
* | |
* @var array Array of post types | |
*/ | |
private $allowed_post_types; | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment