🚢 WP Plugin that adds functionality to easily send Netlify Webhook requests
GPL-3.0 License
Easily deploy static sites using Wordpress and Netlify
Build Quickly and easily send webhooks to build your Netlify
Schedule Schedule daily, weekly or monthly builds
Status Check the status of your latest build to see if it was successful without even leaving Wordpress
NOTE: this plugin does not create a static version of your WordPress site. The plugin simply fires off a build request to Netlify, to rebuild your netlify hosted site (which is assumed to be pulling in WordPress data as a headless CMS).
From your WordPress dashboard
Webhook Build URL
fieldNetlify site_id
fieldNetlify API Key
fieldUser-Agent Site Value
fieldUser-Agent Site Value
fieldSiteNameNoSpaces (site-name-url.com)
Is it possible to set daily, weekly, or monthly builds. Using this plugin. Navigate to the 'Schedule Builds' settings page to select build time and date.
WordPress cron jobs are not 100% reliable as they are only fired when the site is visited. A little bit of work may be required to fix this.
wp-config.php
file - define('DISABLE_WP_CRON', true);
wget -q -O - https://your-domain.com/wp-cron.php?doing_wp_cron
A solution to not being able to set up cPanel cron jobs is to use a third party scheduler. This ensures that at a certain time every day your WordPress cron events will fire.
https://your-domain.com/wp-cron.php?doing_wp_cron
firing a minimum of once an hour every hour.Now the Netlify hook (and all other cron jobs on your site) will run on time.
A deploy button and the status badge of the last build is added to the admin bar. By default this will only be displayed to users that can manage_options
.
You may allow other user roles with these three filters:
add_filter('netlify_status_capability', function() {
return 'edit_pages';
});
add_filter('netlify_deploy_capability', function() {
return 'edit_pages';
});
add_filter('netlify_adjust_settings_capability', function() {
return 'edit_pages';
});
Main Plugin page
View full changelog: here