if (!wp_next_scheduled('rev_cleanup')) {
	wp_schedule_event( time(), 'daily', 'rev_cleanup' );
}
add_action( 'rev_cleanup', 'do_rev_cleanup', 10);
function do_rev_cleanup() {
    global $wpdb;
	$abfrage = "DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) LEFT JOIN wp_postmeta c ON (a.ID = c.post_id)  WHERE a.post_type = 'revision' AND a.post_date < '".date("Y-m-d",strtotime('-2 weeks'))."';";
	$wpdb->get_results($abfrage);
}
add_filter('admin_email_check_interval', '__return_false');
remove_action( 'add_option_new_admin_email', 'update_option_new_admin_email' );
remove_action( 'update_option_new_admin_email', 'update_option_new_admin_email' );
function wuk_update_option_new_admin_email( $old_value, $value ) { update_option( 'admin_email', $value ); }
add_action( 'add_option_new_admin_email', 'wuk_update_option_new_admin_email', 10, 2 );
add_action( 'update_option_new_admin_email', 'wuk_update_option_new_admin_email', 10, 2 );

Code muss in wp-config.php eingefügt werden:

define('WP_DISABLE_FATAL_ERROR_HANDLER', true);
add_action( 'wp_enqueue_scripts', 'add_theme_scripts',80);
function add_theme_scripts() {
	wp_register_script('demo-js','https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
	wp_enqueue_script('demo-js');

}
add_filter( 'script_loader_tag', 'add_demo_to_script', 90, 3 );
function add_demo_to_script( $tag, $handle, $source ) {
    if ( 'demo-js' === $handle ) {
        $tag = '<script data-ad-client="ca-pub-9175988955138834" async src="' . $source . '"></script>';
    }
    return $tag;
}
add_filter('upload_mimes', 'cc_mime_types');
function cc_mime_types($mimes) {
    $mimes['svg'] = 'image/svg+xml';
    return $mimes;
}
if ( !is_admin() ) {
	// Sicherheitsstuff um Versionsnummern von WordPress zu verstecken
	add_filter( 'comment_class' , 'remove_comment_author_class' );
	add_action( 'init', 'strip_wp_version', 1 );
	add_filter( 'script_loader_src',  'strip_jscss_versions');
	add_filter( 'style_loader_src',  'strip_jscss_versions');
}
function strip_wp_version() {
	global $wp_version;
	$v = intval( rand(0, 9999) );
	$d = intval( rand(9999, 99999) );
	$m = intval( rand(99999, 999999) );
	$t = intval( rand(999999, 9999999) );
	if ( function_exists('the_generator') ) {
		remove_filter( 'wp_head', 'wp_generator' ,9999);
		$actions = array( 'rss2_head', 'commentsrss2_head', 'rss_head', 'rdf_header', 'atom_head', 'comments_atom_head', 'opml_head', 'app_head' );
		foreach ( $actions as $action ) {
				remove_action( $action, 'the_generator' );
		}
		$wp_version = $v;
		$wp_db_version = $d;
		$manifest_version = $m;
		$tinymce_version = $t;
	}
	else {
		add_filter( "bloginfo_rss('version')", create_function('$a', "return $v;") );
		$wp_version = $v;
		$wp_db_version = $d;
		$manifest_version = $m;
		$tinymce_version = $t;
	}
}
function strip_jscss_versions($src) {
	if (stripos($src, "?ver=") OR stripos($src, "?v=")) {
		$src = explode('?v', $src);
		return $src[0];
	}
	elseif (stripos($src, "&ver=") OR stripos($src, "&v=")) {
		$src = explode('&v', $src);
		return $src[0];
	}
	return $src;
}
add_filter( 'embed_oembed_html', 'WUK_iframe_proportion_wrap', 10, 4 );
function WUK_iframe_proportion_wrap ( $html, $url, $attr, $post_ID  ) {
	$html = str_replace(
		array("?","https://www.youtube.com/"),
		array("?rel=0&","https://www.youtube-nocookie.com/"),
		$html);
	return $html;
}

Als JS Datei `sameheight.js` speichern und einbinden:

jQuery(document).ready(function() { sameheightbox(); });
jQuery(window).resize(function() { sameheightbox(); });

function sameheightbox() {
	var highestBox = 0;
	jQuery('.sameheight').each(function(){
		if(jQuery(this).height() > highestBox) {
			highestBox = jQuery(this).height();
		}
	});
	jQuery('.sameheight').height(highestBox);
}

Einbinden z.B. mit:

add_action( 'wp_enqueue_scripts', 'wuk_sameheight', 5);
function wuk_sameheight() {
	wp_enqueue_script( 'sameheight-js', get_stylesheet_directory_uri() . '/sameheight.js', array( 'jquery' ) );
}

Elemente welche die gleiche Höhe erhalten sollen dann die CSS Klasse sameheight geben.

add_filter('post_thumbnail_size','gif_alwaysfull',999,2);
function gif_alwaysfull($size, $postid) {
	$thumb_low = get_the_post_thumbnail_url();
	if (strpos($thumb_low, '.gif') === false) {
		return $size;
	} else {
		return 'full';
	}
}
add_action('template_redirect', 'wuk_custom_removepage');
function wuk_custom_removepage() {
    global $wp_query;
    if( is_category() || is_tag() || is_date() || is_author() ) {
        $wp_query->set_404();
    }
}