Skip to content

Instantly share code, notes, and snippets.

@mototeam
Created February 25, 2015 15:27
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 mototeam/e8236f4109cf90a222a2 to your computer and use it in GitHub Desktop.
Save mototeam/e8236f4109cf90a222a2 to your computer and use it in GitHub Desktop.
MotoPress PressTicket Fix plugin
<?php
/*
Plugin Name: MotoPress PressTicket Fix
Plugin URI: http://www.getmotopress.com/
Description: Fixes an issue with PressTicket plugin by Toan Nguyen http://wpoffice.net/contact/. PressTicket plugin adds custom div to each the_content filter call.
Version: 1.0
Author: MotoPress
Author URI: http://www.getmotopress.com/
*/
add_action('motopress_render_shortcode', 'pressticket_fix_motopress_render_shortcode');
function pressticket_fix_motopress_render_shortcode() {
remove_action('the_content', 'wpo_ticket_after_single');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment