This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

not-pages-live-signature.php

By: jan_dembowski on Oct 17th, 2012  |  syntax: PHP  |  size: 0.36 KB  |  views: 53  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /*
  3. Plugin Name: No My Live Signature for pages
  4. Description: This plugin will remove the My Live Signature from pages
  5. Version: 0.1
  6. */
  7.  
  8. add_filter( 'wp_head', 'mh_remove_mls' , 20 );
  9. function mh_remove_mls() {
  10.         global $post;
  11.         if( $post->post_type == 'page' ) {
  12.                 remove_filter( 'the_content', 'mls_add_top_post' );
  13.         }
  14. }
clone this paste RAW Paste Data