Skip to content

Commit 830cdb1

Browse files
authored
Update README.md
1 parent b3de16c commit 830cdb1

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

README.md

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -63,43 +63,24 @@ Tech stacks (knowledge you need to have)
6363
```
6464

6565

66-
67-
68-
3. Change the API url to your project in `.env.development`
69-
70-
```sh
71-
APP_NAME='My App'
72-
# ↑ Your App's Name
73-
74-
VITE_RENDER_ID_1='my-app'
75-
# by default, the footer will render a <div id="my-app"></div> container at front-end page footer
76-
# You can custom the render id
77-
78-
VITE_RENDER_ID_2='my-app-metabox'
79-
# by default, in admin page, when you want to add/edit a new post with post_type=my-app, another React App will render in metabox
80-
# Remove it if you don't need a metabox React App
81-
82-
VITE_API_TIMEOUT='30000'
83-
```
84-
85-
4. Activate the plugin from WordPress admin `/wp-admin`.
66+
3. Activate the plugin from WordPress admin `/wp-admin`.
8667

8768
<img src="https://user-images.githubusercontent.com/9213776/226081766-6d3ce292-1be6-4a34-8a6b-6055670f0a74.png">
8869

89-
5. Visit your site's homepage and see the rendered application on the footer 🚀🚀🚀
70+
4. Visit your site's homepage and see the rendered application on the footer 🚀🚀🚀
9071

9172
<img src="https://user-images.githubusercontent.com/9213776/226081865-8e23a778-8321-44d3-82f0-9f361530ad13.png">
9273

93-
6. Click `Count`, `Get Post Example` button to ensure the State and the WordPress API works
74+
5. Click `Count`, `Get Post Example` button to ensure the State and the WordPress API works
9475

9576
<img src="https://user-images.githubusercontent.com/9213776/226081923-c16cf62f-cd6e-4457-9150-8973b817a6e3.png">
9677

9778

98-
7. Check the admin page, you will see a new post type `My App` and a new menu `My App`
79+
6. Check the admin page, you will see a new post type `My App` and a new menu `My App`
9980

10081
<img src="https://github.com/j7-dev/wp-react-plugin/assets/9213776/b2588014-271a-4620-ab94-d65b2d7a211b">
10182

102-
8. Click Add New, you will see a React App in the metabox
83+
7. Click Add New, you will see a React App in the metabox
10384

10485
<img src="https://github.com/j7-dev/wp-react-plugin/assets/9213776/62c1efab-cb0e-4bcb-8879-4f4b9b6a4915">
10586

0 commit comments

Comments
 (0)