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: 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 | |
*/ |
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 | |
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; | |
} |
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
.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, |
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
// 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 | |
*/ |