Skip to main content

Wordpress

This Integration is part of the Wordpress Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.2.0 and later.

The WordPress REST API provides an interface for applications to interact with your WordPress site by sending and receiving data as JSON (JavaScript Object Notation) objects. It is the foundation of the WordPress Block Editor, and can likewise enable your theme, plugin or custom application to present new, powerful interfaces for managing and publishing your site content. This integration was integrated and tested with version 5.6 of Wordpress

Configure Wordpress in Cortex#

ParameterDescriptionRequired
Your server URLTrue
UserUsernameTrue
Application PasswordThe Application Password to use for connectionTrue
Trust any certificate (not secure)False
Use system proxy settingsFalse

Commands#

You can execute these commands from the CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.

wordpress-url-request#


Get information from a custom URL

Base Command#

wordpress-url-request

Input#

Argument NameDescriptionRequired
methodMethod. Possible values are: get, post, put, delete, patch. Default is get.Required
urlURL suffix to append to the base URL.Required
bodyBody data (JSON).Optional
paramsParameters (JSON).Optional

Context Output#

PathTypeDescription
Wordpress.URLUnknownURL output data

wordpress-list-posts#


Lists all posts

Base Command#

wordpress-list-posts

Input#

Argument NameDescriptionRequired
contextScope under which the request is made; determines fields present in response (default is view). Possible values are: view, edit, embed. Default is view.Optional
pageCurrent page of the collection (defaults is 1).Optional
per_pageMaximum number of items to be returned in result set (default is 10).Optional
searchLimit results to those matching a string.Optional
afterLimit response to posts published after a given ISO8601 compliant date.Optional
authorLimit result set to posts assigned to specific authors.Optional
author_excludeEnsure result set excludes posts assigned to specific authors.Optional
beforeLimit response to posts published before a given ISO8601 compliant date.Optional
excludeEnsure result set excludes specific IDs.Optional
includeLimit result set to specific IDs.Optional
offsetOffset the result set by a specific number of items.Optional
orderOrder sort attribute ascending or descending (default is desc). Possible values are: desc, asc. Default is desc.Optional
orderbySort collection by object attribute (default is date). Possible values are: author, date, id, include, modified, parent, relevance, slug, include_slugs, title. Default is date.Optional
slugLimit result set to posts with one or more specific slugs.Optional
statusLimit result set to posts assigned one or more statuses (default is publish). Default is publish.Optional
tax_relationLimit result set based on relationship between multiple taxonomies. Possible values are: AND, OR.Optional
categoriesLimit result set to all items that have the specified term assigned in the categories taxonomy.Optional
categories_excludeLimit result set to all items except those that have the specified term assigned in the categories taxonomy.Optional
tagsLimit result set to all items that have the specified term assigned in the tags taxonomy.Optional
tags_excludeLimit result set to all items except those that have the specified term assigned in the tags taxonomy.Optional
stickyLimit result set to items that are sticky.Optional

Context Output#

PathTypeDescription
Wordpress.Posts.excerpt.protectedBooleanExerpt protected
Wordpress.Posts.excerpt.renderedStringExerpt rendered
Wordpress.Posts.metaUnknownMetadata
Wordpress.Posts.stickyBooleanSticky
Wordpress.Posts.guid.renderedStringGUID rendered
Wordpress.Posts.modifiedStringModified
Wordpress.Posts.authorStringAuthor
Wordpress.Posts.slugStringSlug
Wordpress.Posts.dateStringDate
Wordpress.Posts.comment_statusStringComment status
Wordpress.Posts.statusStringStatus
Wordpress.Posts.featured_mediaNumberFeatured media
Wordpress.Posts.formatStringFormat
Wordpress.Posts.modified_gmtStringModified GMT
Wordpress.Posts.title.renderedStringTitle rendered
Wordpress.Posts.tagsListTags
Wordpress.Posts.content.protectedBooleanContent protected
Wordpress.Posts.content.renderedStringContent rendered
Wordpress.Posts.templateStringTemplate
Wordpress.Posts._linksUnknownLinks
Wordpress.Posts.typeStringType
Wordpress.Posts.linkStringLink
Wordpress.Posts.idStringID
Wordpress.Posts.categoriesListCategories
Wordpress.Posts.date_gmtStringDate GMT
Wordpress.Posts.ping_statusStringPing status

wordpress-get-post#


Retrieve a specific post record.

Base Command#

wordpress-get-post

Input#

Argument NameDescriptionRequired
idUnique identifier for the object.Required
contextScope under which the request is made; determines fields present in response (default is view). Possible values are: view, edit, embed. Default is view.Optional
passwordThe password for the post if it is password protected.Optional

Context Output#

PathTypeDescription
Wordpress.Posts.excerpt.protectedBooleanExerpt protected
Wordpress.Posts.excerpt.renderedStringExerpt rendered
Wordpress.Posts.metaUnknownMetadata
Wordpress.Posts.stickyBooleanSticky
Wordpress.Posts.guid.renderedStringGUID rendered
Wordpress.Posts.modifiedStringModified
Wordpress.Posts.authorStringAuthor
Wordpress.Posts.slugStringSlug
Wordpress.Posts.dateStringDate
Wordpress.Posts.comment_statusStringComment status
Wordpress.Posts.statusStringStatus
Wordpress.Posts.featured_mediaNumberFeatured media
Wordpress.Posts.formatStringFormat
Wordpress.Posts.modified_gmtStringModified GMT
Wordpress.Posts.title.renderedStringTitle rendered
Wordpress.Posts.tagsListTags
Wordpress.Posts.content.protectedBooleanContent protected
Wordpress.Posts.content.renderedStringContent rendered
Wordpress.Posts.templateStringTemplate
Wordpress.Posts._linksUnknownLinks
Wordpress.Posts.typeStringType
Wordpress.Posts.linkStringLink
Wordpress.Posts.idStringID
Wordpress.Posts.categoriesListCategories
Wordpress.Posts.date_gmtStringDate GMT
Wordpress.Posts.ping_statusStringPing status

wordpress-create-post#


Create a post

Base Command#

wordpress-create-post

Input#

Argument NameDescriptionRequired
statusA named status for the object (default is draft). Possible values are: publish, future, draft, pending, private. Default is draft.Required
slugAn alphanumeric identifier for the object unique to its type.Optional
passwordA password to protect access to the content and excerpt.Optional
titleThe title for the object.Required
contentThe content for the object.Required
authorThe ID for the author of the object.Required
exerptThe excerpt for the object.Optional
featured_mediaThe ID of the featured media for the object.Optional
comment_statusWhether or not comments are open on the object. Possible values are: open, closed.Optional
ping_statusWhether or not the object can be pinged. Possible values are: open, closed.Optional
formatThe format for the object (default is standard). Possible values are: standard, aside, chat, gallery, link, image, quote, status, video, audio. Default is standard.Required
metaMeta fields (JSON dict).Optional
stickyWhether or not the object should be treated as sticky (default is false). Possible values are: true, false. Default is false.Optional
templateThe theme file to use to display the object.Optional
categoriesThe terms assigned to the object in the category taxonomy (CSV of IDs).Optional
tagsThe terms assigned to the object in the post_tag taxonomy (CSV).Optional

Context Output#

PathTypeDescription
Wordpress.Posts.excerpt.protectedBooleanExerpt protected
Wordpress.Posts.excerpt.renderedStringExerpt rendered
Wordpress.Posts.metaUnknownMetadata
Wordpress.Posts.stickyBooleanSticky
Wordpress.Posts.guid.renderedStringGUID rendered
Wordpress.Posts.modifiedStringModified
Wordpress.Posts.authorStringAuthor
Wordpress.Posts.slugStringSlug
Wordpress.Posts.dateStringDate
Wordpress.Posts.comment_statusStringComment status
Wordpress.Posts.statusStringStatus
Wordpress.Posts.featured_mediaNumberFeatured media
Wordpress.Posts.formatStringFormat
Wordpress.Posts.modified_gmtStringModified GMT
Wordpress.Posts.title.renderedStringTitle rendered
Wordpress.Posts.tagsListTags
Wordpress.Posts.content.protectedBooleanContent protected
Wordpress.Posts.content.renderedStringContent rendered
Wordpress.Posts.templateStringTemplate
Wordpress.Posts._linksUnknownLinks
Wordpress.Posts.typeStringType
Wordpress.Posts.linkStringLink
Wordpress.Posts.idStringID
Wordpress.Posts.categoriesListCategories
Wordpress.Posts.date_gmtStringDate GMT
Wordpress.Posts.ping_statusStringPing status

wordpress-update-post#


Update a post

Base Command#

wordpress-update-post

Input#

Argument NameDescriptionRequired
idPost ID.Required
dateThe date the object was published, in the sites timezone.Optional
date_gmtThe date the object was published, as GMT.Optional
statusA named status for the object (default is draft). Possible values are: publish, future, draft, pending, private. Default is draft.Optional
slugAn alphanumeric identifier for the object unique to its type.Optional
passwordA password to protect access to the content and excerpt.Optional
titleThe title for the object.Optional
contentThe content for the object.Optional
authorThe ID for the author of the object.Optional
exerptThe excerpt for the object.Optional
featured_mediaThe ID of the featured media for the object.Optional
comment_statusWhether or not comments are open on the object. Possible values are: open, closed.Optional
ping_statusWhether or not the object can be pinged. Possible values are: open, closed.Optional
formatThe format for the object (default is standard). Possible values are: standard, aside, chat, gallery, link, image, quote, status, video, audio. Default is standard.Optional
metaMeta fields (JSON dict).Optional
stickyWhether or not the object should be treated as sticky (default is false). Possible values are: true, false. Default is false.Optional
templateThe theme file to use to display the object.Optional
categoriesThe terms assigned to the object in the category taxonomy (CSV of IDs).Optional
tagsThe terms assigned to the object in the post_tag taxonomy (CSV of IDs).Optional

Context Output#

PathTypeDescription
Wordpress.Posts.excerpt.protectedBooleanExerpt protected
Wordpress.Posts.excerpt.renderedStringExerpt rendered
Wordpress.Posts.metaUnknownMetadata
Wordpress.Posts.stickyBooleanSticky
Wordpress.Posts.guid.renderedStringGUID rendered
Wordpress.Posts.modifiedStringModified
Wordpress.Posts.authorStringAuthor
Wordpress.Posts.slugStringSlug
Wordpress.Posts.dateStringDate
Wordpress.Posts.comment_statusStringComment status
Wordpress.Posts.statusStringStatus
Wordpress.Posts.featured_mediaNumberFeatured media
Wordpress.Posts.formatStringFormat
Wordpress.Posts.modified_gmtStringModified GMT
Wordpress.Posts.title.renderedStringTitle rendered
Wordpress.Posts.tagsListTags
Wordpress.Posts.content.protectedBooleanContent protected
Wordpress.Posts.content.renderedStringContent rendered
Wordpress.Posts.templateStringTemplate
Wordpress.Posts._linksUnknownLinks
Wordpress.Posts.typeStringType
Wordpress.Posts.linkStringLink
Wordpress.Posts.idStringID
Wordpress.Posts.categoriesListCategories
Wordpress.Posts.date_gmtStringDate GMT
Wordpress.Posts.ping_statusStringPing status

wordpress-delete-post#


Delete a post

Base Command#

wordpress-delete-post

Input#

Argument NameDescriptionRequired
idPost ID.Required
forceWhether to bypass Trash and force deletion (default is false). Possible values are: true, false. Default is false.Optional

Context Output#

PathTypeDescription
Wordpress.Posts.excerpt.protectedBooleanExerpt protected
Wordpress.Posts.excerpt.renderedStringExerpt rendered
Wordpress.Posts.metaUnknownMetadata
Wordpress.Posts.stickyBooleanSticky
Wordpress.Posts.guid.renderedStringGUID rendered
Wordpress.Posts.modifiedStringModified
Wordpress.Posts.authorStringAuthor
Wordpress.Posts.slugStringSlug
Wordpress.Posts.dateStringDate
Wordpress.Posts.comment_statusStringComment status
Wordpress.Posts.statusStringStatus
Wordpress.Posts.featured_mediaNumberFeatured media
Wordpress.Posts.formatStringFormat
Wordpress.Posts.modified_gmtStringModified GMT
Wordpress.Posts.title.renderedStringTitle rendered
Wordpress.Posts.tagsListTags
Wordpress.Posts.content.protectedBooleanContent protected
Wordpress.Posts.content.renderedStringContent rendered
Wordpress.Posts.templateStringTemplate
Wordpress.Posts._linksUnknownLinks
Wordpress.Posts.typeStringType
Wordpress.Posts.linkStringLink
Wordpress.Posts.idStringID
Wordpress.Posts.categoriesListCategories
Wordpress.Posts.date_gmtStringDate GMT
Wordpress.Posts.ping_statusStringPing status

wordpress-list-categories#


List categories

Base Command#

wordpress-list-categories

Input#

Argument NameDescriptionRequired
contextScope under which the request is made; determines fields present in response (default is view). Possible values are: view, edit, embed. Default is view.Optional
pageCurrent page of the collection (defaults is 1).Optional
per_pageMaximum number of items to be returned in result set (default is 10).Optional
searchLimit results to those matching a string.Optional
excludeEnsure result set excludes specific IDs.Optional
includeLimit result set to specific IDs.Optional
orderOrder sort attribute ascending or descending (default is desc). Possible values are: desc, asc. Default is desc.Optional
orderbySort collection by object attribute (default is date). Possible values are: author, date, id, include, modified, parent, relevance, slug, include_slugs, title. Default is date.Optional
slugLimit result set to posts with one or more specific slugs.Optional
hide_emptyWhether to hide terms not assigned to any posts.Optional
postLimit result set to terms assigned to a specific post.Optional
parentLimit result set to terms assigned to a specific parent.Optional

Context Output#

PathTypeDescription
Wordpress.Categories.metaUnknownMetadata
Wordpress.Categories.parentNumberParent
Wordpress.Categories.nameStringName
Wordpress.Categories.slugStringSlug
Wordpress.Categories.countNumberCount
Wordpress.Categories.taxonomyStringTaxonomy
Wordpress.Categories._linksListLinks
Wordpress.Categories.linkStringLink
Wordpress.Categories.idNumberID
Wordpress.Categories.descriptionStringDescription

wordpress-create-category#


Create a category

Base Command#

wordpress-create-category

Input#

Argument NameDescriptionRequired
descriptionHTML description of the term.Optional
nameHTML title for the term.Required
slugAn alphanumeric identifier for the term unique to its type.Optional
parentThe parent term ID.Optional
metaMeta fields (JSON dict).Optional

Context Output#

PathTypeDescription
Wordpress.Categories.metaUnknownMetadata
Wordpress.Categories.parentNumberParent
Wordpress.Categories.nameStringName
Wordpress.Categories.slugStringSlug
Wordpress.Categories.countNumberCount
Wordpress.Categories.taxonomyStringTaxonomy
Wordpress.Categories._linksListLinks
Wordpress.Categories.linkStringLink
Wordpress.Categories.idNumberID
Wordpress.Categories.descriptionStringDescription

wordpress-get-category#


Retrieve a category

Base Command#

wordpress-get-category

Input#

Argument NameDescriptionRequired
idUnique identifier for the category.Required
contextScope under which the request is made; determines fields present in response (default is view). Possible values are: view, edit, embed. Default is view.Optional

Context Output#

PathTypeDescription
Wordpress.Categories.metaUnknownMetadata
Wordpress.Categories.parentNumberParent
Wordpress.Categories.nameStringName
Wordpress.Categories.slugStringSlug
Wordpress.Categories.countNumberCount
Wordpress.Categories.taxonomyStringTaxonomy
Wordpress.Categories._linksListLinks
Wordpress.Categories.linkStringLink
Wordpress.Categories.idNumberID
Wordpress.Categories.descriptionStringDescription

wordpress-update-category#


Update a category

Base Command#

wordpress-update-category

Input#

Argument NameDescriptionRequired
idCategory ID.Required
descriptionHTML description of the term.Optional
nameHTML title for the term.Optional
slugAn alphanumeric identifier for the term unique to its type.Optional
parentThe parent term ID.Optional
metaMeta fields (JSON dict).Optional

Context Output#

PathTypeDescription
Wordpress.Categories.metaUnknownMetadata
Wordpress.Categories.parentNumberParent
Wordpress.Categories.nameStringName
Wordpress.Categories.slugStringSlug
Wordpress.Categories.countNumberCount
Wordpress.Categories.taxonomyStringTaxonomy
Wordpress.Categories._linksListLinks
Wordpress.Categories.linkStringLink
Wordpress.Categories.idNumberID
Wordpress.Categories.descriptionStringDescription

wordpress-delete-category#


Delete a category

Base Command#

wordpress-delete-category

Input#

Argument NameDescriptionRequired
idCategory ID.Required

Context Output#

There is no context output for this command.

wordpress-list-tags#


Lists all tags

Base Command#

wordpress-list-tags

Input#

Argument NameDescriptionRequired
contextScope under which the request is made; determines fields present in response (default is view). Possible values are: view, edit, embed. Default is view.Optional
pageCurrent page of the collection (defaults is 1).Optional
per_pageMaximum number of items to be returned in result set (default is 10).Optional
searchLimit results to those matching a string.Optional
excludeEnsure result set excludes specific IDs.Optional
includeLimit result set to specific IDs.Optional
offsetOffset the result set by a specific number of items.Optional
orderOrder sort attribute ascending or descending (default is desc). Possible values are: desc, asc. Default is desc.Optional
orderbySort collection by object attribute (default is date). Possible values are: author, date, id, include, modified, parent, relevance, slug, include_slugs, title. Default is date.Optional
slugLimit result set to posts with one or more specific slugs.Optional
hide_emptyWhether to hide terms not assigned to any posts.Optional
postLimit result set to terms assigned to a specific post.Optional

Context Output#

PathTypeDescription
Wordpress.Tags.metaUnknownMetadata
Wordpress.Tags.nameStringName
Wordpress.Tags.slugStringSlug
Wordpress.Tags.countNumberCount
Wordpress.Tags.taxonomyStringTaxonomy
Wordpress.Tags._linksListLinks
Wordpress.Tags.linkStringLink
Wordpress.Tags.idNumberID
Wordpress.Tags.descriptionStringDescription

wordpress-create-tag#


Create a tag

Base Command#

wordpress-create-tag

Input#

Argument NameDescriptionRequired
descriptionHTML description of the term.Optional
nameHTML title for the term.Optional
slugAn alphanumeric identifier for the term unique to its type.Optional
metaMeta fields (JSON dict).Optional

Context Output#

PathTypeDescription
Wordpress.Tags.metaUnknownMetadata
Wordpress.Tags.nameStringName
Wordpress.Tags.slugStringSlug
Wordpress.Tags.countNumberCount
Wordpress.Tags.taxonomyStringTaxonomy
Wordpress.Tags._linksListLinks
Wordpress.Tags.linkStringLink
Wordpress.Tags.idNumberID
Wordpress.Tags.descriptionStringDescription

wordpress-get-tag#


Retrieves a tag

Base Command#

wordpress-get-tag

Input#

Argument NameDescriptionRequired
contextScope under which the request is made; determines fields present in response (default is view). Possible values are: view, edit, embed. Default is view.Optional
idTag ID.Required

Context Output#

PathTypeDescription
Wordpress.Tags.metaUnknownMetadata
Wordpress.Tags.nameStringName
Wordpress.Tags.slugStringSlug
Wordpress.Tags.countNumberCount
Wordpress.Tags.taxonomyStringTaxonomy
Wordpress.Tags._linksListLinks
Wordpress.Tags.linkStringLink
Wordpress.Tags.idNumberID
Wordpress.Tags.descriptionStringDescription

wordpress-update-tag#


Update a tag

Base Command#

wordpress-update-tag

Input#

Argument NameDescriptionRequired
idTag ID.Required
descriptionHTML description of the term.Optional
nameHTML title for the term.Optional
slugAn alphanumeric identifier for the term unique to its type.Optional
parentThe parent term ID.Optional
metaMeta fields (JSON dict).Optional

Context Output#

PathTypeDescription
Wordpress.Tags.metaUnknownMetadata
Wordpress.Tags.nameStringName
Wordpress.Tags.slugStringSlug
Wordpress.Tags.countNumberCount
Wordpress.Tags.taxonomyStringTaxonomy
Wordpress.Tags._linksListLinks
Wordpress.Tags.linkStringLink
Wordpress.Tags.idNumberID
Wordpress.Tags.descriptionStringDescription

wordpress-delete-tag#


Delete a tag

Base Command#

wordpress-delete-tag

Input#

Argument NameDescriptionRequired
idTag ID.Required

Context Output#

There is no context output for this command.

wordpress-list-comments#


Lists all comments

Base Command#

wordpress-list-comments

Input#

Argument NameDescriptionRequired
contextScope under which the request is made; determines fields present in response (default is view). Possible values are: view, edit, embed. Default is view.Optional
pageCurrent page of the collection (defaults is 1).Optional
per_pageMaximum number of items to be returned in result set (default is 10).Optional
searchLimit results to those matching a string.Optional
afterLimit response to comments published after a given ISO8601 compliant date.Optional
authorLimit result set to comments assigned to specific user IDs.Optional
author_excludeEnsure result set excludes comments assigned to specific user IDs.Optional
author_emailLimit result set to that from a specific author email.Optional
beforeLimit response to comments published before a given ISO8601 compliant date.Optional
excludeEnsure result set excludes specific IDs.Optional
includeLimit result set to specific IDs.Optional
offsetOffset the result set by a specific number of items.Optional
orderOrder sort attribute ascending or descending (default is desc). Possible values are: desc, asc. Default is desc.Optional
orderbySort collection by object attribute (default is date_gmt). Possible values are: date, date_gmt, id, include, post, parent, type. Default is date_gmt.Optional
parentLimit result set to terms assigned to a specific parent.Optional
parent_excludeEnsure result set excludes specific parent IDs.Optional
postLimit result set to terms assigned to a specific post.Optional
statusLimit result set to comments assigned a specific status (default is approve). Default is approve.Optional
typeLimit result set to comments assigned a specific type (default is comment). Default is comment.Optional
passwordThe password for the post if it is password protected.Optional

Context Output#

PathTypeDescription
Wordpress.Comments.postStringPost ID
Wordpress.Comments.metaStringMetadata
Wordpress.Comments.parentNumberParent ID
Wordpress.Comments.authorNumberAuthor ID
Wordpress.Comments.dateStringDate
Wordpress.Comments.statusStringStatus
Wordpress.Comments.author_avatar_urlsListAuthor svatars
Wordpress.Comments.content.renderedStringRendered content
Wordpress.Comments._linksListLinks
Wordpress.Comments.typeStringType
Wordpress.Comments.linkStringLink
Wordpress.Comments.author_urlStringAuthor URL
Wordpress.Comments.idNumberid
Wordpress.Comments.date_gmtStringDate GMT
Wordpress.Comments.author_nameStringAuthor name

wordpress-create-comment#


Create a comment

Base Command#

wordpress-create-comment

Input#

Argument NameDescriptionRequired
authorThe ID of the user object, if author was a user.Optional
author_emailEmail address for the object author.Optional
author_ipIP address for the object author.Optional
author_nameDisplay name for the object author.Optional
author_urlURL for the object author.Optional
author_user_agentUser agent for the object author.Optional
contentThe content for the object.Optional
parentThe ID for the parent of the object.Optional
postThe ID of the associated post object.Optional
statusState of the object.Optional
metaMeta fields (JSON dict).Optional

Context Output#

PathTypeDescription
Wordpress.Comments.postStringPost ID
Wordpress.Comments.metaStringMetadata
Wordpress.Comments.parentNumberParent ID
Wordpress.Comments.authorNumberAuthor ID
Wordpress.Comments.dateStringDate
Wordpress.Comments.statusStringStatus
Wordpress.Comments.author_avatar_urlsListAuthor svatars
Wordpress.Comments.content.renderedStringRendered content
Wordpress.Comments._linksListLinks
Wordpress.Comments.typeStringType
Wordpress.Comments.linkStringLink
Wordpress.Comments.author_urlStringAuthor URL
Wordpress.Comments.idNumberid
Wordpress.Comments.date_gmtStringDate GMT
Wordpress.Comments.author_nameStringAuthor name

wordpress-get-comment#


Retrieves a comment

Base Command#

wordpress-get-comment

Input#

Argument NameDescriptionRequired
contextScope under which the request is made; determines fields present in response (default is view). Possible values are: view, edit, embed. Default is view.Optional
idComment ID.Required
passwordThe password for the parent post of the comment (if the post is password protected).Optional

Context Output#

PathTypeDescription
Wordpress.Comments.postStringPost ID
Wordpress.Comments.metaStringMetadata
Wordpress.Comments.parentNumberParent ID
Wordpress.Comments.authorNumberAuthor ID
Wordpress.Comments.dateStringDate
Wordpress.Comments.statusStringStatus
Wordpress.Comments.author_avatar_urlsListAuthor svatars
Wordpress.Comments.content.renderedStringRendered content
Wordpress.Comments._linksListLinks
Wordpress.Comments.typeStringType
Wordpress.Comments.linkStringLink
Wordpress.Comments.author_urlStringAuthor URL
Wordpress.Comments.idNumberid
Wordpress.Comments.date_gmtStringDate GMT
Wordpress.Comments.author_nameStringAuthor name

wordpress-update-comment#


Update a comment

Base Command#

wordpress-update-comment

Input#

Argument NameDescriptionRequired
idComment ID.Required
authorThe ID of the user object, if author was a user.Optional
author_emailEmail address for the object author.Optional
author_ipIP address for the object author.Optional
author_nameDisplay name for the object author.Optional
author_urlURL for the object author.Optional
author_user_agentUser agent for the object author.Optional
contentThe content for the object.Optional
dateThe date the object was published, in the sites timezone.Optional
date_gmtThe date the object was published, as GMT.Optional
parentThe ID for the parent of the object.Optional
postThe ID of the associated post object.Optional
statusState of the object.Optional
metaMeta fields (JSON dict).Optional

Context Output#

PathTypeDescription
Wordpress.Comments.postStringPost ID
Wordpress.Comments.metaStringMetadata
Wordpress.Comments.parentNumberParent ID
Wordpress.Comments.authorNumberAuthor ID
Wordpress.Comments.dateStringDate
Wordpress.Comments.statusStringStatus
Wordpress.Comments.author_avatar_urlsListAuthor svatars
Wordpress.Comments.content.renderedStringRendered content
Wordpress.Comments._linksListLinks
Wordpress.Comments.typeStringType
Wordpress.Comments.linkStringLink
Wordpress.Comments.author_urlStringAuthor URL
Wordpress.Comments.idNumberid
Wordpress.Comments.date_gmtStringDate GMT
Wordpress.Comments.author_nameStringAuthor name

wordpress-delete-comment#


Delete a comment

Base Command#

wordpress-delete-comment

Input#

Argument NameDescriptionRequired
idTag ID.Required
forceWhether to bypass Trash and force deletion (default is false). Possible values are: true, false. Default is false.Optional
passwordThe password for the parent post of the comment (if the post is password protected).Optional

Context Output#

PathTypeDescription
Wordpress.Comments.postStringPost ID
Wordpress.Comments.metaStringMetadata
Wordpress.Comments.parentNumberParent ID
Wordpress.Comments.authorNumberAuthor ID
Wordpress.Comments.dateStringDate
Wordpress.Comments.statusStringStatus
Wordpress.Comments.author_avatar_urlsListAuthor svatars
Wordpress.Comments.content.renderedStringRendered content
Wordpress.Comments._linksListLinks
Wordpress.Comments.typeStringType
Wordpress.Comments.linkStringLink
Wordpress.Comments.author_urlStringAuthor URL
Wordpress.Comments.idNumberid
Wordpress.Comments.date_gmtStringDate GMT
Wordpress.Comments.author_nameStringAuthor name

wordpress-list-users#


List users

Base Command#

wordpress-list-users

Input#

Argument NameDescriptionRequired
contextScope under which the request is made; determines fields present in response (default is view). Possible values are: view, edit, embed. Default is view.Optional
pageCurrent page of the collection (defaults is 1). Default is 1.Optional
per_pageMaximum number of items to be returned in result set (default is 10).Optional
searchLimit results to those matching a string.Optional
excludeEnsure result set excludes specific IDs.Optional
includeLimit result set to specific IDs.Optional
offsetOffset the result set by a specific number of items.Optional
orderOrder sort attribute ascending or descending (default is desc). Possible values are: desc, asc. Default is desc.Optional
orderbySort collection by object attribute (default is name). Possible values are: id, include, name, registered_date, slug, include_slugs, email, url. Default is name.Optional
slugLimit result set to users with one or more specific slugs.Optional
rolesLimit result set to users matching at least one specific role provided (CSV).Optional
whoLimit result set to users who are considered authors. Possible values are: authors.Optional

Context Output#

PathTypeDescription
Wordpress.Users.metaListMetadata
Wordpress.Users.avatar_urlsListAvatar URLs
Wordpress.Users.nameStringName
Wordpress.Users.slugStringSlug
Wordpress.Users.urlStringURL
Wordpress.Users._linksListLinks
Wordpress.Users.linkStringLink
Wordpress.Users.idNumberUser ID
Wordpress.Users.descriptionStringDescription

wordpress-get-user#


Retrieve a user.

Base Command#

wordpress-get-user

Input#

Argument NameDescriptionRequired
idUser ID.Required
contextScope under which the request is made; determines fields present in response (default is view). Possible values are: view, edit, embed. Default is view.Optional

Context Output#

PathTypeDescription
Wordpress.Users.metaListMetadata
Wordpress.Users.avatar_urlsListAvatar URLs
Wordpress.Users.nameStringName
Wordpress.Users.slugStringSlug
Wordpress.Users.urlStringURL
Wordpress.Users._linksListLinks
Wordpress.Users.linkStringLink
Wordpress.Users.idNumberUser ID
Wordpress.Users.descriptionStringDescription

wordpress-create-user#


Create a user

Base Command#

wordpress-create-user

Input#

Argument NameDescriptionRequired
localeLocale for the user (default is en_US). Default is en_US.Optional
usernameLogin name for the user.Required
nameDisplay name for the user.Optional
first_nameFirst name for the user.Optional
last_nameLast name for the user.Optional
emailThe email address for the user.Required
urlURL of the user.Optional
descriptionDescription of the user.Optional
nicknameThe nickname for the user.Optional
slugAn alphanumeric identifier for the user.Optional
rolesRoles assigned to the user (CSV).Optional
passwordPassword for the user.Required
metaMeta fields (JSON dict).Optional

Context Output#

PathTypeDescription
Wordpress.Users.metaListMetadata
Wordpress.Users.avatar_urlsListAvatar URLs
Wordpress.Users.nameStringName
Wordpress.Users.slugStringSlug
Wordpress.Users.urlStringURL
Wordpress.Users._linksListLinks
Wordpress.Users.linkStringLink
Wordpress.Users.idNumberUser ID
Wordpress.Users.descriptionStringDescription

wordpress-update-user#


Update a user

Base Command#

wordpress-update-user

Input#

Argument NameDescriptionRequired
idUser ID.Required
localeLocale for the user (default is en_US). Default is en_US.Optional
usernameLogin name for the user.Optional
nameDisplay name for the user.Optional
first_nameFirst name for the user.Optional
last_nameLast name for the user.Optional
emailThe email address for the user.Optional
urlURL of the user.Optional
descriptionDescription of the user.Optional
nicknameThe nickname for the user.Optional
slugAn alphanumeric identifier for the user.Optional
rolesRoles assigned to the user (CSV).Optional
passwordPassword for the user.Optional
metaMeta fields (JSON dict).Optional

Context Output#

PathTypeDescription
Wordpress.Users.metaListMetadata
Wordpress.Users.avatar_urlsListAvatar URLs
Wordpress.Users.nameStringName
Wordpress.Users.slugStringSlug
Wordpress.Users.urlStringURL
Wordpress.Users._linksListLinks
Wordpress.Users.linkStringLink
Wordpress.Users.idNumberUser ID
Wordpress.Users.descriptionStringDescription

wordpress-delete-user#


Delete a user

Base Command#

wordpress-delete-user

Input#

Argument NameDescriptionRequired
idUser ID.Required
reassignReassign the deleted users posts and links to this user ID.Required

Context Output#

There is no context output for this command.