Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Dall robertdall

View GitHub Profile
@jeremyfelt
jeremyfelt / hide-inactive-jetpack-modules.php
Last active Dec 26, 2015
Hide inactive Jetpack modules
View hide-inactive-jetpack-modules.php
<?php
/*
Plugin Name: Hide Inactive Jetpack Modules
Plugin URI: https://gist.github.com/jeremyfelt/7062883
Description: Hides Jetpack modules that are marked as inactive, providing for a shorter list.
Version: 0.1
Author: Jeremy Felt
Author URI: http://jeremyfelt.com
License: GPL2
*/
View customize-sharing.php
<?php
add_filter( 'sharing_show', 'rdall_sharing_show' );
function rdall_sharing_show() {
if ( is_home() ) return true;
if ( is_archive() ) return false;
if ( is_search() ) return false;
return true;
}
@codebykat
codebykat / destroy-blue-lines.css
Last active Dec 22, 2015 — forked from max/gist:6472731
Hides "conversation view" on Twitter while still preserving the ability to click to expand conversation. This works for me on Chrome.
View destroy-blue-lines.css
.conversation-module > li:after, .conversation-module > li:before {
display: none;
}
ol.conversation-module li.conversation-root,
ol.conversation-module li.conversation-ancestor {
display: none;
}
li.js-has-navigable-stream.open ol.conversation-module li.conversation-root,
View wp-query-ref.php
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/