Filters and actions to set up custom code that hooks into the Reports admin area for an individual Sitewide Sale.
Filter Hooks
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 );
apply_filters( 'swsales_daily_revenue_chart_currency_format', $daily_revenue_chart_currency_format, $sitewide_sale );
apply_filters( 'swsales_daily_revenue_chart_days', '21' );
apply_filters( 'swsales_report_csv_export_tmp_dir', sys_get_temp_dir() );
Action Hooks
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.