Skip to content

Instantly share code, notes, and snippets.

@DevinVinson
Created May 16, 2019 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DevinVinson/c6463c6b6c2141832f0271fa1fe35d3f to your computer and use it in GitHub Desktop.
Save DevinVinson/c6463c6b6c2141832f0271fa1fe35d3f to your computer and use it in GitHub Desktop.
OM Inline Prioritizer
<?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