getTotalPosts( )
Gets the total amount of published posts on the blog.
The getTotalPosts()
function returns a Promise that resolves to the total amount of published posts on your blog's site.
You can use the language
option to filter posts for a specified language.
Permission Scopes
For app development, you must have one of the following permission scopes:Read Blog
Manage Blog
Read Draft Blog Posts
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
optionsGetTotalPostsOptions
Language Options.
Returns
Return Type:Promise<GetTotalPostsResponse>
Was this helpful?
Yes
No