ByteChef LogoByteChef
Components

Wordpress

WordPress is a web content management system.

Categories: Productivity and Collaboration

Type: wordpress/v1


Connections

Version: 1

basic_auth

Properties

NameLabelTypeDescriptionRequired
usernameApplication Password NameSTRINGWordpress application password name.true
passwordApplication PasswordSTRINGApplication password, found in Users -> Profile.true
websiteWordpress WebsiteSTRINGWordpress website of your Wordpress site. Can be found in user settings.true

Actions

Get Post

Name: getPost

Get a post by post ID.

Properties

NameLabelTypeDescriptionRequired
postIdPost IDSTRINGID of the post that will be fetched.true

Example JSON Structure

{
  "label" : "Get Post",
  "name" : "getPost",
  "parameters" : {
    "postId" : ""
  },
  "type" : "wordpress/v1/getPost"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idINTEGERUnique identifier for the post.
dateSTRINGThe date the post was published, in the site's timezone.
date_gmtSTRINGThe date the post was published, in GMT.
guidOBJECT
Properties {STRING(rendered)}
The globally unique identifier for the post.
modifiedSTRINGThe date the post was last modified, in the site's timezone.
modified_gmtSTRINGThe date the post was last modified, in GMT.
slugSTRINGAn alphanumeric identifier for the post unique to its type.
statusSTRING
Options publish, future, draft, pending, private
The publication status of the post.
typeSTRINGType of the object (post).
linkSTRINGURL to the post.
titleOBJECT
Properties {STRING(rendered), STRING(raw)}
The title for the post.
contentOBJECT
Properties {STRING(rendered), BOOLEAN(protected)}
The content for the post.
excerptOBJECT
Properties {STRING(rendered), BOOLEAN(protected)}
The excerpt for the post.
authorINTEGERThe ID for the author of the post.
featured_mediaINTEGERThe ID of the featured media for the post.
comment_statusSTRING
Options open, closed
Whether comments are allowed for the post.
ping_statusSTRING
Options open, closed
Whether pingbacks or trackbacks are allowed.
stickyBOOLEAN
Options true, false
Weather the post is pinned to the top of the page.
templateSTRINGThe theme file used to display the post.
formatSTRINGThe format of the post.
metaOBJECT
Properties {STRING(footnotes)}
Meta fields associated with the post.
categoriesARRAY
Items [INTEGER]
Categories of the post.
tagsARRAY
Items [STRING]
Tags of the post.
class_listARRAY
Items [STRING]
Class list of the post.
_linksOBJECT
Properties {[{STRING(href), {[STRING](allow)}(targetHints)}](self), [{STRING(href)}](collection), [{STRING(href)}](about), [{STRING(href), BOOLEAN(embeddable)}](author), [{STRING(href), BOOLEAN(embeddable)}](replies), [{STRING(href), INTEGER(count)}](version-history), [{STRING(href), INTEGER(id)}](predecessor-version), [{STRING(href)}](wp:attachment), [{STRING(href), STRING(taxonomy), BOOLEAN(embeddable)}](wp:term), [{STRING(name), STRING(href), BOOLEAN(templated)}](curies)}
Links to other related resources.

Output Example

{
  "id" : 1,
  "date" : "",
  "date_gmt" : "",
  "guid" : {
    "rendered" : ""
  },
  "modified" : "",
  "modified_gmt" : "",
  "slug" : "",
  "status" : "",
  "type" : "",
  "link" : "",
  "title" : {
    "rendered" : "",
    "raw" : ""
  },
  "content" : {
    "rendered" : "",
    "protected" : false
  },
  "excerpt" : {
    "rendered" : "",
    "protected" : false
  },
  "author" : 1,
  "featured_media" : 1,
  "comment_status" : "",
  "ping_status" : "",
  "sticky" : false,
  "template" : "",
  "format" : "",
  "meta" : {
    "footnotes" : ""
  },
  "categories" : [ 1 ],
  "tags" : [ "" ],
  "class_list" : [ "" ],
  "_links" : {
    "self" : [ {
      "href" : "",
      "targetHints" : {
        "allow" : [ "" ]
      }
    } ],
    "collection" : [ {
      "href" : ""
    } ],
    "about" : [ {
      "href" : ""
    } ],
    "author" : [ {
      "href" : "",
      "embeddable" : false
    } ],
    "replies" : [ {
      "href" : "",
      "embeddable" : false
    } ],
    "version-history" : [ {
      "href" : "",
      "count" : 1
    } ],
    "predecessor-version" : [ {
      "href" : "",
      "id" : 1
    } ],
    "wp:attachment" : [ {
      "href" : ""
    } ],
    "wp:term" : [ {
      "href" : "",
      "taxonomy" : "",
      "embeddable" : false
    } ],
    "curies" : [ {
      "name" : "",
      "href" : "",
      "templated" : false
    } ]
  }
}

Update Post

Name: updatePost

Update a post.

Properties

NameLabelTypeDescriptionRequired
postIdPost IDSTRINGID of the post that will be fetched.true
titleTitleSTRINGTitle of the post.false
contentContentSTRINGContent of the post, uses the WordPress Text Editor which supports HTML.false
statusStatusSTRING
Options publish, future, draft, pending, private
Status of the post.false
slugSlugSTRINGSlug of the post identifier.false
categoriesCategoriesARRAY
Items [INTEGER]
Categories of the post.false
comment_statusEnable CommentsSTRING
Options open, closed
Enable comments on the post.false
ping_statusOpen to PingingSTRING
Options open, closed
Enable pinging on the post.false

Example JSON Structure

{
  "label" : "Update Post",
  "name" : "updatePost",
  "parameters" : {
    "postId" : "",
    "title" : "",
    "content" : "",
    "status" : "",
    "slug" : "",
    "categories" : [ 1 ],
    "comment_status" : "",
    "ping_status" : ""
  },
  "type" : "wordpress/v1/updatePost"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idINTEGERUnique identifier for the post.
dateSTRINGThe date the post was published, in the site's timezone.
date_gmtSTRINGThe date the post was published, in GMT.
guidOBJECT
Properties {STRING(rendered), STRING(raw)}
The globally unique identifier for the post.
modifiedSTRINGThe date the post was last modified, in the site's timezone.
modified_gmtSTRINGThe date the post was last modified, in GMT.
passwordSTRINGPassword for accessing the post.
slugSTRINGAn alphanumeric identifier for the post unique to its type.
statusSTRING
Options publish, future, draft, pending, private
The publication status of the post.
typeSTRINGType of the object (post).
linkSTRINGURL to the post.
titleOBJECT
Properties {STRING(rendered), STRING(raw)}
The title for the post.
contentOBJECT
Properties {STRING(rendered), STRING(raw), BOOLEAN(protected), INTEGER(block_version)}
The content for the post.
excerptOBJECT
Properties {STRING(raw), STRING(rendered), BOOLEAN(protected)}
The excerpt for the post.
authorINTEGERThe ID for the author of the post.
featured_mediaINTEGERThe ID of the featured media for the post.
comment_statusSTRING
Options open, closed
Whether comments are allowed for the post.
ping_statusSTRING
Options open, closed
Whether pingbacks or trackbacks are allowed.
stickyBOOLEAN
Options true, false
Weather the post is pinned to the top of the page.
templateSTRINGThe theme file used to display the post.
formatSTRINGThe format of the post.
metaOBJECT
Properties {STRING(footnotes)}
Meta fields associated with the post.
categoriesARRAY
Items [INTEGER]
Categories of the post.
tagsARRAY
Items [STRING]
Tags of the post.
permalink_templateSTRINGPermalink template of the post.
generated_slugSTRINGGenerated slug of the post.
class_listARRAY
Items [STRING]
Class list of the post.
_linksOBJECT
Properties {[{STRING(href), {[STRING](allow)}(targetHints)}](self), [{STRING(href)}](collection), [{STRING(href)}](about), [{STRING(href), BOOLEAN(embeddable)}](author), [{STRING(href), BOOLEAN(embeddable)}](replies), [{STRING(href), INTEGER(count)}](version-history), [{STRING(href), INTEGER(id)}](predecessor-version), [{STRING(href)}](wp:attachment), [{STRING(href), STRING(taxonomy), BOOLEAN(embeddable)}](wp:term), [{STRING(href)}](wp:action-publish), [{STRING(href)}](wp:action-unfiltered-html), [{STRING(href)}](wp:action-sticky), [{STRING(href)}](wp:action-assign-author), [{STRING(href)}](wp:action-create-categories), [{STRING(href)}](wp:action-assign-categories), [{STRING(href)}](wp:action-assign-tags), [{STRING(href)}](wp:action-create-tags), [{STRING(name), STRING(href), BOOLEAN(templated)}](curies)}
Links to other related resources.

Output Example

{
  "id" : 1,
  "date" : "",
  "date_gmt" : "",
  "guid" : {
    "rendered" : "",
    "raw" : ""
  },
  "modified" : "",
  "modified_gmt" : "",
  "password" : "",
  "slug" : "",
  "status" : "",
  "type" : "",
  "link" : "",
  "title" : {
    "rendered" : "",
    "raw" : ""
  },
  "content" : {
    "rendered" : "",
    "raw" : "",
    "protected" : false,
    "block_version" : 1
  },
  "excerpt" : {
    "raw" : "",
    "rendered" : "",
    "protected" : false
  },
  "author" : 1,
  "featured_media" : 1,
  "comment_status" : "",
  "ping_status" : "",
  "sticky" : false,
  "template" : "",
  "format" : "",
  "meta" : {
    "footnotes" : ""
  },
  "categories" : [ 1 ],
  "tags" : [ "" ],
  "permalink_template" : "",
  "generated_slug" : "",
  "class_list" : [ "" ],
  "_links" : {
    "self" : [ {
      "href" : "",
      "targetHints" : {
        "allow" : [ "" ]
      }
    } ],
    "collection" : [ {
      "href" : ""
    } ],
    "about" : [ {
      "href" : ""
    } ],
    "author" : [ {
      "href" : "",
      "embeddable" : false
    } ],
    "replies" : [ {
      "href" : "",
      "embeddable" : false
    } ],
    "version-history" : [ {
      "href" : "",
      "count" : 1
    } ],
    "predecessor-version" : [ {
      "href" : "",
      "id" : 1
    } ],
    "wp:attachment" : [ {
      "href" : ""
    } ],
    "wp:term" : [ {
      "href" : "",
      "taxonomy" : "",
      "embeddable" : false
    } ],
    "wp:action-publish" : [ {
      "href" : ""
    } ],
    "wp:action-unfiltered-html" : [ {
      "href" : ""
    } ],
    "wp:action-sticky" : [ {
      "href" : ""
    } ],
    "wp:action-assign-author" : [ {
      "href" : ""
    } ],
    "wp:action-create-categories" : [ {
      "href" : ""
    } ],
    "wp:action-assign-categories" : [ {
      "href" : ""
    } ],
    "wp:action-assign-tags" : [ {
      "href" : ""
    } ],
    "wp:action-create-tags" : [ {
      "href" : ""
    } ],
    "curies" : [ {
      "name" : "",
      "href" : "",
      "templated" : false
    } ]
  }
}

Create Post

Name: createPost

Creates a new post.

Properties

NameLabelTypeDescriptionRequired
titleTitleSTRINGTitle of the post about to be created.true
contentContentSTRINGContent of the post about to be created. Uses the WordPress Text Editor which supports HTML.true
statusStatusSTRING
Options publish, future, draft, pending, private
Status of the post about to be added.false
slugSlugSTRINGSlug of the post identifier.false
categoriesCategoriesARRAY
Items [INTEGER]
Categories of the post.false
comment_statusEnable CommentsSTRING
Options open, closed
Enable comments on the post.false
ping_statusOpen to PingingSTRING
Options open, closed
Enable pinging on the post.false

Example JSON Structure

{
  "label" : "Create Post",
  "name" : "createPost",
  "parameters" : {
    "title" : "",
    "content" : "",
    "status" : "",
    "slug" : "",
    "categories" : [ 1 ],
    "comment_status" : "",
    "ping_status" : ""
  },
  "type" : "wordpress/v1/createPost"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idINTEGERUnique identifier for the post.
dateSTRINGThe date the post was published, in the site's timezone.
date_gmtSTRINGThe date the post was published, in GMT.
guidOBJECT
Properties {STRING(rendered), STRING(raw)}
The globally unique identifier for the post.
modifiedSTRINGThe date the post was last modified, in the site's timezone.
modified_gmtSTRINGThe date the post was last modified, in GMT.
passwordSTRINGPassword for accessing the post.
slugSTRINGAn alphanumeric identifier for the post unique to its type.
statusSTRING
Options publish, future, draft, pending, private
The publication status of the post.
typeSTRINGType of the object (post).
linkSTRINGURL to the post.
titleOBJECT
Properties {STRING(rendered), STRING(raw)}
The title for the post.
contentOBJECT
Properties {STRING(rendered), STRING(raw), BOOLEAN(protected), INTEGER(block_version)}
The content for the post.
excerptOBJECT
Properties {STRING(raw), STRING(rendered), BOOLEAN(protected)}
The excerpt for the post.
authorINTEGERThe ID for the author of the post.
featured_mediaINTEGERThe ID of the featured media for the post.
comment_statusSTRING
Options open, closed
Whether comments are allowed for the post.
ping_statusSTRING
Options open, closed
Whether pingbacks or trackbacks are allowed.
stickyBOOLEAN
Options true, false
Weather the post is pinned to the top of the page.
templateSTRINGThe theme file used to display the post.
formatSTRINGThe format of the post.
metaOBJECT
Properties {STRING(footnotes)}
Meta fields associated with the post.
categoriesARRAY
Items [INTEGER]
Categories of the post.
tagsARRAY
Items [STRING]
Tags of the post.
permalink_templateSTRINGPermalink template of the post.
generated_slugSTRINGGenerated slug of the post.
class_listARRAY
Items [STRING]
Class list of the post.
_linksOBJECT
Properties {[{STRING(href), {[STRING](allow)}(targetHints)}](self), [{STRING(href)}](collection), [{STRING(href)}](about), [{STRING(href), BOOLEAN(embeddable)}](author), [{STRING(href), BOOLEAN(embeddable)}](replies), [{STRING(href), INTEGER(count)}](version-history), [{STRING(href)}](wp:attachment), [{STRING(href)}](wp:action-publish), [{STRING(href)}](wp:action-unfiltered-html), [{STRING(href)}](wp:action-assign-author), [{STRING(name), STRING(href), BOOLEAN(templated)}](curies)}
Links to other related resources.

Output Example

{
  "id" : 1,
  "date" : "",
  "date_gmt" : "",
  "guid" : {
    "rendered" : "",
    "raw" : ""
  },
  "modified" : "",
  "modified_gmt" : "",
  "password" : "",
  "slug" : "",
  "status" : "",
  "type" : "",
  "link" : "",
  "title" : {
    "rendered" : "",
    "raw" : ""
  },
  "content" : {
    "rendered" : "",
    "raw" : "",
    "protected" : false,
    "block_version" : 1
  },
  "excerpt" : {
    "raw" : "",
    "rendered" : "",
    "protected" : false
  },
  "author" : 1,
  "featured_media" : 1,
  "comment_status" : "",
  "ping_status" : "",
  "sticky" : false,
  "template" : "",
  "format" : "",
  "meta" : {
    "footnotes" : ""
  },
  "categories" : [ 1 ],
  "tags" : [ "" ],
  "permalink_template" : "",
  "generated_slug" : "",
  "class_list" : [ "" ],
  "_links" : {
    "self" : [ {
      "href" : "",
      "targetHints" : {
        "allow" : [ "" ]
      }
    } ],
    "collection" : [ {
      "href" : ""
    } ],
    "about" : [ {
      "href" : ""
    } ],
    "author" : [ {
      "href" : "",
      "embeddable" : false
    } ],
    "replies" : [ {
      "href" : "",
      "embeddable" : false
    } ],
    "version-history" : [ {
      "href" : "",
      "count" : 1
    } ],
    "wp:attachment" : [ {
      "href" : ""
    } ],
    "wp:action-publish" : [ {
      "href" : ""
    } ],
    "wp:action-unfiltered-html" : [ {
      "href" : ""
    } ],
    "wp:action-assign-author" : [ {
      "href" : ""
    } ],
    "curies" : [ {
      "name" : "",
      "href" : "",
      "templated" : false
    } ]
  }
}

Create Page

Name: createPage

Creates a new page.

Properties

NameLabelTypeDescriptionRequired
titleTitleSTRINGTitle of the page about to be added.true
contentContentSTRINGContent of the page about to be added. Uses the WordPress Text Editor which supports HTML.true
statusStatusSTRING
Options publish, future, draft, pending, private
Status of the page about to be added.false
slugSlugSTRINGSlug of the page identifier.false
comment_statusEnable CommentsSTRING
Options open, closed
Enable comments on the page.false
ping_statusOpen to PingingSTRING
Options open, closed
Enable pinging on the page.false

Example JSON Structure

{
  "label" : "Create Page",
  "name" : "createPage",
  "parameters" : {
    "title" : "",
    "content" : "",
    "status" : "",
    "slug" : "",
    "comment_status" : "",
    "ping_status" : ""
  },
  "type" : "wordpress/v1/createPage"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idINTEGERUnique identifier for the page.
dateSTRINGThe date the page was published, in the site's timezone.
date_gmtSTRINGThe date the page was published, in GMT.
guidOBJECT
Properties {STRING(rendered), STRING(raw)}
The globally unique identifier for the page.
modifiedSTRINGThe date the page was last modified, in the site's timezone.
modified_gmtSTRINGThe date the page was last modified, in GMT.
passwordSTRINGPassword for accessing the page.
slugSTRINGAn alphanumeric identifier for the page unique to its type.
statusSTRING
Options publish, future, draft, pending, private
The publication status of the page.
typeSTRINGType of the object (page).
linkSTRINGURL to the page.
titleOBJECT
Properties {STRING(rendered), STRING(raw)}
The title for the page.
contentOBJECT
Properties {STRING(rendered), STRING(raw), BOOLEAN(protected), INTEGER(block_version)}
The content for the page.
excerptOBJECT
Properties {STRING(raw), STRING(rendered), BOOLEAN(protected)}
The excerpt for the page.
authorINTEGERThe ID for the author of the page.
featured_mediaINTEGERThe ID of the featured media for the page.
parentINTEGERThe ID of the parent page, if any.
menu_orderINTEGERThe order of the page in menus.
comment_statusSTRING
Options open, closed
Whether comments are allowed for the page.
ping_statusSTRING
Options open, closed
Whether pingbacks or trackbacks are allowed.
templateSTRINGThe theme file used to display the page.
metaOBJECT
Properties {STRING(footnotes)}
Meta fields associated with the page.
permalink_templateSTRINGPermalink template of the page.
generated_slugSTRINGGenerated slug of the page.
class_listARRAY
Items [STRING]
Class list of the page.
_linksOBJECT
Properties {[{STRING(href), {[STRING](allow)}(targetHints)}](self), [{STRING(href)}](collection), [{STRING(href)}](about), [{STRING(href), BOOLEAN(embeddable)}](author), [{STRING(href), BOOLEAN(embeddable)}](replies), [{STRING(href), INTEGER(count)}](version-history), [{STRING(href)}](wp:attachment), [{STRING(href)}](wp:action-publish), [{STRING(href)}](wp:action-unfiltered-html), [{STRING(href)}](wp:action-assign-author), [{STRING(name), STRING(href), BOOLEAN(templated)}](curies)}
Links to other related resources.

Output Example

{
  "id" : 1,
  "date" : "",
  "date_gmt" : "",
  "guid" : {
    "rendered" : "",
    "raw" : ""
  },
  "modified" : "",
  "modified_gmt" : "",
  "password" : "",
  "slug" : "",
  "status" : "",
  "type" : "",
  "link" : "",
  "title" : {
    "rendered" : "",
    "raw" : ""
  },
  "content" : {
    "rendered" : "",
    "raw" : "",
    "protected" : false,
    "block_version" : 1
  },
  "excerpt" : {
    "raw" : "",
    "rendered" : "",
    "protected" : false
  },
  "author" : 1,
  "featured_media" : 1,
  "parent" : 1,
  "menu_order" : 1,
  "comment_status" : "",
  "ping_status" : "",
  "template" : "",
  "meta" : {
    "footnotes" : ""
  },
  "permalink_template" : "",
  "generated_slug" : "",
  "class_list" : [ "" ],
  "_links" : {
    "self" : [ {
      "href" : "",
      "targetHints" : {
        "allow" : [ "" ]
      }
    } ],
    "collection" : [ {
      "href" : ""
    } ],
    "about" : [ {
      "href" : ""
    } ],
    "author" : [ {
      "href" : "",
      "embeddable" : false
    } ],
    "replies" : [ {
      "href" : "",
      "embeddable" : false
    } ],
    "version-history" : [ {
      "href" : "",
      "count" : 1
    } ],
    "wp:attachment" : [ {
      "href" : ""
    } ],
    "wp:action-publish" : [ {
      "href" : ""
    } ],
    "wp:action-unfiltered-html" : [ {
      "href" : ""
    } ],
    "wp:action-assign-author" : [ {
      "href" : ""
    } ],
    "curies" : [ {
      "name" : "",
      "href" : "",
      "templated" : false
    } ]
  }
}

Triggers

New Post

Name: newPost

Triggers when a new post is added.

Type: POLLING

Output

Type: OBJECT

Properties

NameTypeDescription
idINTEGERUnique identifier for the post.
dateSTRINGThe date the post was published, in the site's timezone.
date_gmtSTRINGThe date the post was published, in GMT.
guidOBJECT
Properties {STRING(rendered)}
The globally unique identifier for the post.
modifiedSTRINGThe date the post was last modified, in the site's timezone.
modified_gmtSTRINGThe date the post was last modified, in GMT.
slugSTRINGAn alphanumeric identifier for the post unique to its type.
statusSTRINGThe publication status of the post.
typeSTRINGType of the object (post).
linkSTRINGURL to the post.
titleOBJECT
Properties {STRING(rendered), STRING(raw)}
The title for the post.
contentOBJECT
Properties {STRING(rendered), BOOLEAN(protected)}
The content for the post.
excerptOBJECT
Properties {STRING(rendered), BOOLEAN(protected)}
The excerpt for the post.
authorINTEGERThe ID for the author of the post.
featured_mediaINTEGERThe ID of the featured media for the post.
comment_statusSTRINGWhether comments are allowed for the post.
ping_statusSTRINGWhether pingbacks or trackbacks are allowed.
stickyBOOLEAN
Options true, false
Weather the post is pinned to the top of the page.
templateSTRINGThe theme file used to display the post.
formatSTRINGThe format of the post.
metaOBJECT
Properties {STRING(footnotes)}
Meta fields associated with the post.
categoriesARRAY
Items [INTEGER]
Categories of the post.
tagsARRAY
Items [STRING]
Tags of the post.
class_listARRAY
Items [STRING]
Class list of the post.
_linksOBJECT
Properties {[{STRING(href), {[STRING](allow)}(targetHints)}](self), [{STRING(href)}](collection), [{STRING(href)}](about), [{STRING(href), BOOLEAN(embeddable)}](author), [{STRING(href), BOOLEAN(embeddable)}](replies), [{STRING(href), INTEGER(count)}](version-history), [{STRING(href), INTEGER(id)}](predecessor-version), [{STRING(href)}](wp:attachment), [{STRING(href), STRING(taxonomy), BOOLEAN(embeddable)}](wp:term), [{STRING(name), STRING(href), BOOLEAN(templated)}](curies)}
Links to other related resources.

JSON Example

{
  "label" : "New Post",
  "name" : "newPost",
  "type" : "wordpress/v1/newPost"
}


Additional instructions


For authentification use Application Passwords

  • As of 5.6, WordPress has shipped with Application Passwords, which can be generated from an Edit User page (wp-admin -> Users -> Edit User).

Permalink Structure Settings -> Permalink Settings -> Permalink structure -> "Post name" option