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 wh_change_more_link() { | |
return '<a class="more-link" href="' . get_permalink() . '">Hier weiterlesen...</a>'; | |
} | |
add_filter( 'the_content_more_link', 'wh_change_more_link' ); |
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 wh_set_excerpt_length( $length ) { | |
return 150; | |
} | |
add_filter( 'excerpt_length', 'wh_set_excerpt_length' ); |
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 wh_add_various_mime_types( $mime_types ) { | |
$mime_types['midi'] = 'audio/midi'; | |
$mime_types['psd'] = 'image/vnd.adobe.photoshop'; | |
return $mime_types; | |
} | |
add_filter( 'upload_mimes', 'wh_add_various_mime_types', 1, 1 ); |
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 wh_custom_login_logocss() { | |
echo '<style type="text/css"> | |
.login h1 a { background-image: url(/pfadunddateinamedeslogos.png); background-size: contain; width:315px; } | |
</style>'; | |
} | |
add_action( 'login_head', 'wh_custom_login_logocss' ); |
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 wh_add_login_message( $message ) { | |
return $message . '<h2>Sprich Freund und tritt ein.</h2>'; | |
} | |
add_filter( 'login_message', 'wh_add_login_message' ); |
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 wh_hide_login_errors(){ | |
return 'No.'; | |
} | |
add_filter( 'login_errors', 'wh_hide_login_errors' ); |
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 wh_wordpress_backend_custom_logo() { | |
echo ' | |
<style type="text/css"> | |
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before { | |
background-image: url(' . get_bloginfo( 'stylesheet_directory' ) . '/images/custom-logo.png) !important; | |
background-size: 20px 20px; | |
background-position: 0 0; | |
color:rgba(0, 0, 0, 0); | |
} | |
#wpadminbar #wp-admin-bar-wp-logo.hover > .ab-item .ab-icon { |
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 wh_wordpress_backend_footer () { | |
echo 'WordPress sauber installiert und konfiguriert dank des umfassenden und sagenhaften <a href="https://wordpress-handbuch.com" target="_blank">WordPress-Handbuchs</a></p>'; | |
} | |
add_filter('admin_footer_text', 'wh_wordpress_backend_footer'); |
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 wh_emove_url_from_comment_form( $fields ) { | |
unset( $fields['url'] ); | |
return $fields; | |
} | |
add_filter( 'comment_form_default_fields', 'wh_remove_url_from_comment_form' ); |
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 wh_remove_comment_links( $content ) { | |
global $allowedtags; | |
$tags = $allowedtags; | |
unset( $tags['a'] ); | |
$content = addslashes( wp_kses( stripslashes( $content ), $tags ) ); | |
return $content; | |
} | |
add_filter( 'pre_comment_content', 'wh_remove_comment_links' ); |