Skip to content

sgreer81/netlify-rebuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Netlify Rebuild

A simple WordPress plugin which makes a POST request to a Netlify webhook (or any webhook for that matter) on post save. It only runs if publishing a post for the first time, or updating a published post.

The Netlify webhook should be defines in the WordPress wp-config.php file. Example...

define('NETLIFY_WEBHOOK', 'https://api.netlify.com/build_hooks/xxxxxxxxxxx');