This file contains hidden or 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: DenyHosts | |
Plugin URI: http://pross.org.uk | |
Description: Block bad login attempts. | |
Version: 1.0 | |
Author: Pross | |
*/ | |
class DenyHosts { |
This file contains hidden or 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 | |
function remove_post_thumbnail($metadata, $object_id, $meta_key, $single){ | |
if( isset($meta_key) && '_thumbnail_id' === $meta_key && is_single() ) | |
return false; | |
else | |
return $metadata; | |
} | |
add_filter('get_post_metadata', 'remove_post_thumbnail', true, 4); |
This file contains hidden or 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
<script> | |
jQuery( document ).ready(function() { | |
var width = jQuery(window).width() | |
if( width < 480 ) | |
jQuery('div').removeClass('pl-animation') | |
}); | |
</script> |
This file contains hidden or 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 | |
/* | |
Seperate Woocommerce reviews from comments and make a reviews moderation panel. | |
*/ | |
class PL_Woo_Review_Mods { | |
function __construct() { | |
add_action( 'current_screen', array( $this, 'check_current_page' ), 10, 2 ); | |
add_action( 'admin_menu', array( $this, 'add_product_reviews' ) ); | |
} | |
function check_current_page( $screen ) { |