PHP code example of morningtrain / wp-database-model-admin-ui

1. Go to this page and download the library: Download morningtrain/wp-database-model-admin-ui library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

morningtrain / wp-database-model-admin-ui example snippets


\Morningtrain\WP\DatabaseModelAdminUi\ModelUI::setup(__DIR__ . "/app/Models");

\Morningtrain\WP\DatabaseModelAdminUi\ModelUI::modelPage(string, string)
    ->register();

->withPageTitle(string)

->withMenuTitle(string)

->withCapability(string)

->withIconUrl(string)

->withPosition(int)

->withSearchButtonText(string)

->withColumns(array)

->withRowActions(array)

->withModifyQueryCallback(\Illuminate\Database\Eloquent\Builder)

->withAdminTableViews(array)

->addAdminTableViewsCallback(callback)

->withAdminTableTopExtraTablenavs(array)
->withAdminTableBottomExtraTablenavs(array)

->withViewPage()

->withAcfCreatePage()

->withAcfEditPage()

->withMetaBoxes(array)

->withoutColumns(array)

->makeSubMenu(string)

->makeRemovable()

->withTitle(string)

->withRender(callback|string)

->makeSearchable(callback|string|null)

->makeSortable(callback|string|null)

->withTitle(string)

->withCount(string)

->withCountCallback(callback|string)

->withRender(callback|string)

->withCapability(string)

->hideDefaultView()

->withSaveCallback(callback|string)

->withCapability(string)

->withLoadFieldCallbacks([])

->withSaveCallback(callback|string)

->withCapability(string)

->withTitle(string)

->withHighPriority()

->withCorePriority()

->withLowPriority()

->onSideContext()

->onAcfEditPage()