Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Filters the array of available banner templates for Sitewide Sales: https://sitewidesales.com
<?php
/*
* Filters the array of available banner templates for Sitewide Sales (https://sitewidesales.com).
*
* @param array $templates The default list of available templates.
*/
function add_custom_swsales_banner_templates( $templates ) {
$templates['black-friday'] = 'Black Friday'; // This is how you add a new template to the array.
//unset( $templates['neon'] ); // This is how you unset an included template from the array.
return $templates;
}
add_filter( 'swsales_banner_templates', 'add_custom_swsales_banner_templates' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.