Publish Action and Filter Hooks
During publish of your site, you may want to hook into the process in order to trigger other actions.
During publish of your site, you may want to hook into the process in order to trigger other actions.
We have an API endpoint that will allow you to trigger a publish to your Live or Preview environment. Currently, this is a Custom Tier feature. To learn more, contact our support via the form on the page, or use the Intercom popup to get in touch.
While Strattic offers pagination for blogs and other post types out of the box, that may not be your style. There are times when you may want a quick way to test or implement a “Load More” button instead of asking your users to click through paginated pages. If our
If you want to add something, additional scripts for instance, to only the Live or Preview static site, you can add something like the following to your functions.php file, a custom plugin, or to a custom theme:
As you may know by now, calls to admin-ajax.php will not work on your static Strattic site (say that five times fast 🤓 ). But, all your hard work is not lost, and in many cases, a static ajax solution can be fairly straightforward to implement. Here is an example
When your site is published to static, we reference paths for all resources related to URLs. Here’s how to add custom paths. You typically think of these as slugs, for example: / (the homepage) /about-us /contact
Strattic offers out-of-the-box integrations with several form solutions. If you need to listen for custom form actions, this doc is for you. Strattic offers out-of-the-box integrations with several form solutions, including Gravity Forms, Contact Form 7, and Elementor Forms. Many form integrations have JavaScript DOM actions that fire throughout the
What sort of custom search solutions are possible on Strattic? Just about everyone who has a PHP or admin-ajax based search solution… This is a difficult question to answer, since there are an unlimited number of options available 🤓 .