Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit d82c9a4

Browse files
committed
adding readme
1 parent f6edf06 commit d82c9a4

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

readme.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# How to use
2+
3+
## Output structure
4+
`Kind of content | post id | post type/taxonomy`
5+
6+
## Commands
7+
To get the id and post type by url:
8+
`wp get-by-url --skip-plugins --skip-themes http://demo.test/2018/10/your-post`
9+
Output:
10+
`post | 33 | post`
11+
12+
To get the id and taxonomy by url:
13+
`wp get-by-url --skip-plugins --skip-themes http://demo.test/tag/test/`
14+
Output:
15+
`term | 2 | post_tag`
16+
17+
### Why skip plugins and themes
18+
19+
It is a good practice in WP CLI when you have to execute commands that are heavy of resources to not load plugins and themes for a lot of reasons.
20+
21+
### Why the separator is pipe?
22+
23+
In that way is more easy to do scri

0 commit comments

Comments
 (0)