Skip to main content Skip to navigation Skip to footer

Using BNFW with the WP REST API

Updated

If you want to use the WP REST API with BNFW then it is possible but you must make sure the following rules are adhered to.
The below uses the ‘New Post Published’ notification as an example and all steps are essential:

  1. Create a new post with the ‘author’ argument set to a valid user ID.
  2. Set the status to ‘draft’.
  3. Run this command and ensure you note the post ID.
  4. Immediately update the post with this post ID with a status of ‘publish’.

If you wanted to trigger a ‘Post Updated’ notification then just change the status of a post to ‘update’, again making sure that the author argument is set to a valid user ID.

Privacy Overview

This website uses cookies so that it can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to this website and helping employees to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

This website uses the Stripe Payment Processor. Cookies from Stripe are required in order for this website to provide eCommerce functions, such as to accept payments.

This website uses YouTube to host and display videos relating to the operation of this plugin and forms part of the documentation. Use of cookies from YouTube is required in order to fully document or explain elements of a product.

PHPSESSID - This cookie is native to PHP applications. The cookie is used to store and identify a users' unique session ID for the purpose of managing a user's session on the website. The cookie is a session cookies and is deleted when all the browser windows are closed.