Filters and actions to set up custom code that hooks into the Reports admin area for an individual Sitewide Sale.
apply_filters( 'swsales_get_checkout_conversions', 'N/A', $this );
apply_filters( 'swsales_get_revenue', 'N/A', $this );
apply_filters( 'swsales_checkout_conversions_title', $title, $this );
do_action( 'swsales_additional_reports', $this );
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.