Skip to content

Instantly share code, notes, and snippets.

@fueledbyboredom
fueledbyboredom / totally-disable-comments.php
Last active February 14, 2017 16:05
Disable and remove WordPress comment system
<?php
function mwpf_disable_comments_post_types_support() {
$post_types = get_post_types();
foreach ($post_types as $post_type) {
if(post_type_supports($post_type, 'comments')) {
remove_post_type_support($post_type, 'comments');
remove_post_type_support($post_type, 'trackbacks');
}
}
}
@fueledbyboredom
fueledbyboredom / 0_reuse_code.js
Created February 14, 2017 15:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console