View Categories

Configurations

sample-plugin.php
$page_data     = array(
	'page_title' => 'My Settings Page',
	'menu_title' => 'My Settings',
	'capability' => 'manage_options',
	'menu_slug'  => 'my-settings',
	'icon'       => 'dashicons-admin-generic',
	'position'   => 20,
	'configs'    => array(
		'show_tabs'       => false,
		'wrapper_classes' => 'my-plugin-wrapper',
		'page_width'      => 'medium', // mini ~ 2xl | small ~ 4xl | medium ~ 5xl | large ~ 6xl | extra ~ 8xl
	),
);

Config: show_tabs #

Typeboolean
Defaultfalse

  • true — Display tabs for each settings section
  • false — Hide tabs and render all sections in one continuous page

Config: wrapper_classes #

Adds custom CSS classes to the main wrapper container. Use this to style and customise layout spacing or theme consistency with the admin UI.

Typestring
Defaultno default

Possible Values: (example usage)

  • “my-plugin-wrapper”
  • “wp-ui-theme dark p-6”
  • Custom Tailwind / CSS utility classes

Config: page_width #

Specifies the container max-width for the settings page. Ideal for controlling UI readability based on content density.

Typestring
Defaultmedium

Possible Values

ValueMeaning / Max Width
mini2xl width (very narrow)
small4xl width
medium5xl width (default)
large6xl width
extra8xl width (very wide)