Created
August 2, 2016 16:19
-
-
Save ericakfranz/705818e606c5f12406b944969699d4b7 to your computer and use it in GitHub Desktop.
Simple change to the OptinMonster default priority for inline optins.
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: OM Inline Prioritizer | |
* Version: 1.0 | |
* Description: Simple change to the OptinMonster default priority for inline optins. | |
* Author: Devin Vinson | |
* Author URI: http://optinmonster.com | |
* Text Domain: om-inline-prioritizer | |
* Domain Path: /languages | |
* @package om-inline-prioritizer | |
*/ | |
/** | |
* Modify the priority that OM outputs inline optins. | |
* | |
* Since Jetpack filters the_content at 20, we'll filter | |
* at 19 to come first. Modify as needed | |
* | |
* @return int | |
*/ | |
function omip_move_inline_priority() { | |
return 19; | |
} | |
add_filter('optin_monster_api_post_priority','omip_move_inline_priority'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment