Created
July 9, 2009 09:02
-
-
Save beastaugh/143523 to your computer and use it in GitHub Desktop.
WordPress plugin to make sites using Tarski print as they appear on screen
This file contains 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: Remove Print Style | |
Plugin URI: http://tarskitheme.com/ | |
Description: Stop Tarski using its print stylesheet. | |
Author: Ben Eastaugh | |
Version: 1.0 | |
Author URI: http://extralogical.net/ | |
*/ | |
function remove_tarski_print_style($styles) { | |
unset($styles['print']); | |
unset($styles['screen']['media']); | |
return $styles; | |
} | |
add_action('tarski_style_array', 'remove_tarski_print_style'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment