Template Hooks

Filters and actions to add new templates or adjust built-in templates for landing pages and sale banners.

apply_filters( 'swsales_templates', $templates );
apply_filters( 'swsales_landing_page_templates', $templates );
apply_filters( 'swsales_banner_templates', $templates );

About Actions and Filters in Sitewide Sales

Hooks allow you to extend Sitewide Sales without editing any core plugin files. You can use a hook to program custom code that interacts with or modifies code in our plugin, other plugins, your theme, and even WordPress itself.

There are two kinds of hooks: actions and filters.

  • Action hooks allow you to run new custom code at pre-defined locations.
  • Filter hooks allow you change or extend existing code by modifying the data and returning it back to the software.

Click here to browse the full database of action and filter hooks available in Sitewide Sales. For help extending core WordPress, refer to the WordPress Developer Handbook’s documentation on Filters and Actions.