Last active
February 9, 2020 12:06
-
-
Save mattyrob/d00511ccaf74a6602c5deacd300de058 to your computer and use it in GitHub Desktop.
Change the default email type for Public Subscribers in Subscribe2 HTML
This file contains 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 | |
/* | |
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