Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Last active August 29, 2015 14:19
Show Gist options
  • Save ericakfranz/41164b6cf9874d4e6208 to your computer and use it in GitHub Desktop.
Save ericakfranz/41164b6cf9874d4e6208 to your computer and use it in GitHub Desktop.
Plugin to add the OptinMonster After Post template tag.
<?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