plugin action links

This commit is contained in:
abuyoyo 2022-08-05 21:07:07 +03:00
commit c72d8b3882
2 changed files with 7 additions and 1 deletions

View File

@ -10,6 +10,6 @@
], ],
"require":{ "require":{
"abuyoyo/screen-meta-links": "~0.11", "abuyoyo/screen-meta-links": "~0.11",
"abuyoyo/plugincore": "~0.20" "abuyoyo/plugincore": "~0.21"
} }
} }

View File

@ -21,6 +21,12 @@ new PluginCore(
__FILE__, __FILE__,
[ [
'update_checker' => true, 'update_checker' => true,
'action_links' => [
'settings' => [
'text' => 'Settings',
'href' => 'menu_page' // reserved option_name
],
],
'admin_page' => [ 'admin_page' => [
'parent' => 'options', 'parent' => 'options',
'render' => 'settings-page', // built-in settings page 'render' => 'settings-page', // built-in settings page