The absolute minimum required to turn any database table into an Admin
Columns-powered overview page. This recipe registers the wp_users table
with no custom configuration. Admin Columns will:
- Auto-detect every column from the table schema.
- Generate reasonable default column types from the SQL column types.
- Generate default labels from the column names.
- The
acp/data-sources/registeraction: the single entry point for adding Data Sources. - The
Facade\Table::from()helper that wraps table resolution. - Creating a
DataSourcewith only an ID and a table. - Registering an
Entrywithset_submenu()so the page appears in the WordPress admin.
If a table exists in the database, you can make it browsable in under ten lines of code.
See example.php.