Simple change to the OptinMonster default priority for inline optins.
<?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');