New:Socket for Asana Is Now Available.Learn more
Get Started

wordpress-rest-admin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wordpress-rest-admin

A frontend for admin area of WordPress, using WP REST API and React. It works with Self-Hosted WordPress.

npmnpm
Version
0.1.6
Version published
Weekly downloads
21
23.53%
Maintainers
1
Weekly downloads
 
Created
Source

WordPress REST Admin

A frontend for admin area of WordPress, using WP REST API and React. It works with Self-Hosted WordPress.

Alt Screenshot

This project was bootstrapped with Create React App.

Features

  • Login (using JWT WP REST Plugin)
  • Dashboard
  • Posts(List, Edit, Add New, Trash)
  • Pages(List, Edit, Add New, Trash)
  • Categories and Tags
  • Comments
  • Users
  • Profile
  • Settings

Usage

Backend - what needs to be done first

Make sure you have WP REST API and JWP plugin installed in your wordpress

WP REST API

JWP Authentication for WP REST API

git clone and npm start

  • Run these commands just to see how it works
git clone https://github.com/rnaga/wordpress-rest-admin.git .
npm install
npm start

Use as a React Component

cd /path/to/your/project
npm install
npm i wordpress-rest-admin
  • and render it
import WPAdmin from 'wordpress-rest-admin/WPAdmin';
import contents from 'wordpress-rest-admin/contents';
import loginLogo from './WordpressLogo.svg';
import headerLogo from './WordpressLogo.png';

...

<WPAdmin
  loginLogo={loginLogo}
  headerLogo={headerLogo}
  defaultContent={defaultContent}
  contents={contents}
/>

See example here

Supported Browsers

By default, the generated project uses the latest version of React.

You can refer to the React documentation for more information about supported browsers.

Keywords

wordpress

FAQs

Package last updated on 01 Jul 2018

Related posts