Skip to content

Instantly share code, notes, and snippets.

View slartibartfass's full-sized avatar

Axel Kriewel slartibartfass

  • concedra gmbh
  • Germany
View GitHub Profile
### Keybase proof
I hereby claim:
* I am slartibartfass on github.
* I am kiwi_de (https://keybase.io/kiwi_de) on keybase.
* I have a public key ASA7s2UprvZ-ejZSoKXhirTE1sWhbpaQgmiTDcrb3g5GIQo
To claim this, I am signing this object:
@slartibartfass
slartibartfass / functions.php
Created September 10, 2019 11:57 — forked from mattclements/functions.php
Completely Disable Wordpress Comments (add to functions.php)
<?php
// Disable support for comments and trackbacks in post types
function df_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');
}
@slartibartfass
slartibartfass / function.php
Created September 10, 2019 11:57 — forked from mattclements/function.php
Wordpress Disable Comments (add to function.php)
<?php
// Add to existing function.php file
// Disable support for comments and trackbacks in post types
function df_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');
@slartibartfass
slartibartfass / .htaccess
Last active July 18, 2022 06:39 — forked from seoagentur-hamburg/.htaccess
[05/2022]
########################################################################
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.4 - 05/2022
# ----------------------------------------------------------------------
# @Author: Andreas Hecht
# @Author URI: https://seoagentur-hamburg.com
# License: GNU General Public License v2 or later
# License URI: http://www.gnu.org/licenses/gpl-2.0.html
########################################################################
@slartibartfass
slartibartfass / 0_reuse_code.js
Created February 3, 2017 08:47
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