A React-based admin panel for WordPress customization settings. This plugin provides a modern, user-friendly interface for managing various WordPress customization options using React components.
- Modern React-based UI: Built with React and WordPress components for a seamless admin experience
- Tabbed Interface: Organized settings in easy-to-navigate tabs
- Multiple Setting Types: Supports text fields, color pickers, select dropdowns, and textareas
- Real-time Feedback: Provides immediate feedback on save operations
- Customization Options:
- General settings (site title, admin email)
- Appearance settings (admin color, menu position)
- Advanced settings (custom CSS, custom JavaScript)
- Download the plugin zip file
- Log in to your WordPress admin panel
- Navigate to Plugins → Add New
- Click the "Upload Plugin" button
- Upload the zip file and click "Install Now"
- Activate the plugin through the "Plugins" menu
- After activation, a new menu item "React Admin" will appear in your WordPress admin sidebar
- Click on "React Admin" to access the settings panel
- Navigate through the tabs to configure different aspects of your WordPress site:
- General: Configure basic site information
- Appearance: Customize the look and feel of your admin panel
- Advanced: Add custom CSS and JavaScript
- Click "Save Settings" to apply your changes
- Clone this repository into your WordPress plugins directory:
cd wp-content/plugins/
git clone https://github.com/ikamal7/wp-react-admin-panel.git
cd wp-react-admin-panel
- Install dependencies:
npm install
- Start the development server:
npm run start
This will compile your JavaScript files and watch for changes.
- Build for production:
npm run build
wp-react-admin-panel/
├── build/ # Compiled files (generated)
├── src/ # Source files
│ ├── index.js # Main React application
│ └── index.css # Styles
├── wp-react-admin-panel.php # Main plugin file
├── package.json # npm dependencies and scripts
└── README.md # This file
npm run start
: Start the development server with hot reloadingnpm run build
: Build the project for productionnpm run format
: Format code using WordPress coding standardsnpm run lint:js
: Lint JavaScript files
The plugin is built with extensibility in mind. You can add new tabs or settings by modifying the React components in src/index.js
.
Example of adding a new tab:
// Add this to the tabs array in src/index.js
{
name: 'new-section',
title: __('New Section', 'wp-react-admin-panel'),
className: 'tab-new-section',
content: (
<PanelBody>
<TextControl
label={__('New Setting', 'wp-react-admin-panel')}
value={settings.newSection.newSetting}
onChange={(value) => updateSettings('newSection', 'newSetting', value)}
/>
</PanelBody>
)
}
GPL v2 or later
Developed by Kamal Hosen
For support, feature requests, or bug reports, please open an issue on GitHub.