Overview:
WordPress REST Admin is a frontend for the admin area of WordPress, built using WP REST API and React. It allows users to interact with their WordPress site’s admin features using a modern and user-friendly interface. This tool is compatible with self-hosted WordPress sites and offers a range of features including login, dashboard management, post and page editing, media uploads, category and tag management, user management, and more. WordPress REST Admin also provides a code generator to create custom pages, making it a powerful tool for developers. Whether you’re a WordPress site owner or a developer, WordPress REST Admin offers an efficient and intuitive way to manage your WordPress admin area.
Features:
- Login using JWT WP REST Plugin for secure authentication
- Dashboard management to view and manage site statistics and analytics
- Posts management including listing, editing, adding new posts, and trashing posts
- Pages management including listing, editing, adding new pages, and trashing pages
- Media upload functionality for uploading images to the media library
- Categories and tags management to organize posts and improve site navigation
- Comments management to moderate and reply to user comments
- User management to view, edit, and add new users
- Profile and settings management for customizing user profiles and site settings
- Code generator to easily create your own custom pages within WordPress REST Admin
Installation:
To use WordPress REST Admin, follow these steps:
- Make sure that you have WP REST API and JWP plugin installed in your WordPress site. You can find WP REST API at https://v2.wp-api.org/.
- Clone the project repository and navigate to the project directory.
- Run the command
npm startto start the development server. This will launch the WordPress REST Admin interface. - Visit http://localhost:3000 in your browser to access the WordPress REST Admin login page.
Alternatively, you can use docker-compose to quickly set up WordPress REST Admin along with WordPress and MySQL. Follow these steps:
- Create a
docker-compose.ymlfile with the necessary configurations for WordPress and MySQL. - Use the
docker-composecommand to start the containers and launch WordPress REST Admin. - Once all containers are up and running, visit http://localhost:3000 in your browser to access the WordPress REST Admin interface.
- Use the provided login credentials to log in to your WordPress site within the WordPress REST Admin interface.
If you want to integrate WordPress REST Admin as a component in your existing React project, follow these steps:
- Create a new React project using Create React App.
- Import the WordPress REST Admin package into your project.
- Render the WordPress REST Admin component in your application.
- Visit http://localhost:3000 in your browser to access the integrated WordPress REST Admin interface.
To create custom pages within WordPress REST Admin, follow these steps:
- Install Yeoman, a scaffolding tool, if not already installed.
- Clone the WordPress REST Admin repository and navigate to the “generator” directory.
- Run the command
npm linkto set up the generator. - Go to the “src” directory of your React project and run the
yocommand. - Choose an icon for your new page when prompted. Icons can be found at https://fontawesome.com/icons?d=gallery&m=free.
- The generator will create new files (components) under the “contents” directory of your project.
- Import and pass your new page component to the WPAdmin component in your main application.
- Start your React project and visit http://localhost:3000 to see your custom page in WordPress REST Admin.
- Update the List.js, Edit.js, and Create.js components as needed to customize the output of your custom page.
To import existing pages into your WordPress REST Admin project, follow these steps:
- Identify the page you want to import (“content”) from the list of supported pages.
- Copy the code snippet provided in the documentation for importing the specific page.
- Paste the code snippet into the appropriate location in your WordPress REST Admin project.
- Customize the imported page’s functionality and appearance as needed.
Summary:
WordPress REST Admin is a powerful frontend tool for managing the admin area of self-hosted WordPress sites. It utilizes the WP REST API and React to provide a modern and user-friendly interface for site owners and developers. With features such as login, dashboard management, post and page editing, media uploads, categories and tags management, and user management, WordPress REST Admin offers a comprehensive solution for WordPress admin area management. Its code generator and support for integrating custom pages make it even more versatile. Whether you’re a WordPress site owner looking to streamline your admin experience or a developer seeking to enhance WordPress functionality, WordPress REST Admin is worth considering.