Skip to content

Instantly share code, notes, and snippets.

@mattyrob
Last active February 9, 2020 12:06
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 mattyrob/d00511ccaf74a6602c5deacd300de058 to your computer and use it in GitHub Desktop.
Save mattyrob/d00511ccaf74a6602c5deacd300de058 to your computer and use it in GitHub Desktop.
Change the default email type for Public Subscribers in Subscribe2 HTML
<?php
/*
Plugin Name: Subscribe2 HTML Format Changer
Plugin URI: http://subscribe2.wordpress.com
Description: Changes the default email type for Public Subscribers in Subscribe2 HTML
Version: 1.0
Author: Matthew Robinson
Author URI: http://subscribe2.wordpress.com
*/
/*
Copyright (C) 2006-20 Matthew Robinson
*/
function s2_html_format_changer() {
// return one of the possible email types:
// 'html_body' for a full content HTML email
// 'html_excerpt_body' for an excerpt in HTML format
// 'plain_body' for a full content plain text email
// 'plain_excerpt_body' for an excerpt in plain text format
return 'plain_body';
}
add_filter( 's2_public_subscriber_format', 's2_html_format_changer' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment