Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Last active November 17, 2020 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimcoleman/e8c38f1dd658eef0b4bb60654102d6a0 to your computer and use it in GitHub Desktop.
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
<?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