Last active
August 29, 2015 14:19
-
-
Save ericakfranz/41164b6cf9874d4e6208 to your computer and use it in GitHub Desktop.
Plugin to add the OptinMonster After Post template tag.
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 | |
/** | |
* Plugin Name: OptinMonster Add After Post Optin | |
* Description: Add the 'd1ztn1euuw-post' After Post optin to single blog posts. | |
* Version: 1.0.0 | |
*/ | |
add_filter( 'the_content', 'ekf_add_om_after_post_optin', 100 ); | |
function ekf_add_om_after_post_optin() { | |
if( is_single() ) { | |
optin_monster_tag( 'd1ztn1euuw-post', false ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment