Last active
November 17, 2020 20:31
-
-
Save kimcoleman/e8c38f1dd658eef0b4bb60654102d6a0 to your computer and use it in GitHub Desktop.
Adds a "Black Friday" template name to the array of available landing page templates for Sitewide Sales: https://sitewidesales.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Filters the array of available landing page templates for Sitewide Sales (https://sitewidesales.com). | |
* | |
* @param array $templates The default list of available templates. | |
*/ | |
function add_custom_swsales_landing_page_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_landing_page_templates', 'add_custom_swsales_landing_page_templates' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment