Browse
For agents
About
Parse.ly
/
3.7.1
Parse.ly
v3.7.1
Switch version
3.24.1
3.24.0
3.23.7
3.23.6
3.23.5
3.23.4
3.23.3
3.16.0
3.16.1
3.16.2
3.16.3
3.16.4
3.17.0
3.18.0
3.18.1
3.19.0
3.19.1
3.19.2
3.19.3
3.2.0
3.2.1
3.20.0
3.20.1
3.20.2
3.20.3
All 105 releases
Overview
Code
wp-parsely
/
src
/
blocks
/
shared
/
utils
/
post.ts
post.ts
in Parse.ly 3.7.1, at src/blocks/shared/utils/post.ts
11 lines
248 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
/**
2
* Gets edit url of the post.
3
*
4
*
@
param
{
number
}
postId
ID of the post.
5
*
6
*
@
return
{
string
}
Edit
url of the post.
7
*/
8
export
function
getPostEditUrl
(
postId
:
number
)
:
string
{
9
return
`
/wp-admin/post.php?post=
${
postId
}
&action=edit
`
;
10
}
11