This file contains hidden or 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
function remove_tags_status() { | |
global $wp_taxonomies; | |
$tax = 'status'; | |
if( taxonomy_exists( $tax ) ) | |
unset( $wp_taxonomies[$tax] ); | |
} | |
add_action( 'init', 'remove_tags_status' ); |
This file contains hidden or 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
function restrict_books_by_genre() { | |
global $typenow; | |
$post_type = 'wohnheim'; // change HERE | |
$taxonomy = array('wohnmoeglichkeiten', 'region', 'traeger'); // change HERE | |
if ($typenow == $post_type) { | |
$selected = isset($_GET[$taxonomy]) ? $_GET[$taxonomy] : ''; | |
$info_taxonomy = get_taxonomy($taxonomy); | |
wp_dropdown_categories(array( | |
'show_option_all' => __("Alle Wohnheimkategorien {$info_taxonomy->label}"), | |
'taxonomy' => $taxonomy, |
This file contains hidden or 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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
This file contains hidden or 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
if ( ! function_exists( 'unregister_post_type' ) ) : | |
function unregister_post_type() { | |
global $wp_post_types; | |
if ( isset( $wp_post_types[ 'expose' ] ) ) { | |
unset( $wp_post_types[ 'expose' ] ); | |
return true; | |
} | |
return false; | |
} | |
endif; |
This file contains hidden or 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
/* Shortcode spam-protected HTML "mailto" | |
* [email] | |
* | |
*/ | |
function iz_email_protection($atts , $content = null ){ | |
if ( ! is_email ($content) ) | |
return; | |
return '<a href="mailto:'.antispambot($content).'">'.antispambot($content).'</a>'; | |
} |
This file contains hidden or 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
$(window).bind('resize', function(e) | |
{ | |
window.resizeEvt; | |
$(window).resize(function() | |
{ | |
clearTimeout(window.resizeEvt); | |
window.resizeEvt = setTimeout(function() | |
{ | |
//code to do after window is resized | |
}, 250); |
This file contains hidden or 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
function child_remove_parent_function() { | |
remove_action( 'init', 'parent_function' ); | |
} | |
add_action( 'wp_loaded', 'child_remove_parent_function' ); |
This file contains hidden or 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
[...] utf8_bin => | |
[...] utf8mb4_bin |