This file contains 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 | |
// Ab hier kopieren | |
//emoji aus dem header entfernen | |
function ah_disable_emoji_dequeue_script() { | |
wp_dequeue_script( 'emoji' ); | |
} | |
add_action( 'wp_print_scripts', 'ah_disable_emoji_dequeue_script', 100 ); | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); |
This file contains 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 | |
// Ab hier kopieren | |
/* ============================================================================= | |
### WordPress Embeds ausschalten | |
============================================================================= */ | |
/** | |
* Disable embeds on init. | |
* | |
* - Removes the needed query vars. |
This file contains 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
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.9 - 03/2024 | |
# ---------------------------------------------------------------------- | |
# @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 | |
######################################################################## | |
This file contains 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
[Roter-Button url="https://andreas-hecht.com/" text="Ein cooler Button" klasse="nomargins"] |
This file contains 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 | |
/** | |
* Eine eigene sitemap.xml ohne Plugin erstellen | |
* @author Andreas Hecht | |
*/ | |
function ah_create_sitemap() { | |
$sitemap_posts = get_posts(array( | |
'numberposts' => -1, | |
'orderby' => 'modified', |
This file contains 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 | |
// Shortcode für den Editor: | |
[mailcode] | |
//Für die Template-Dateien Deines Themes: | |
<?php echo do_shortcode('[mailcode]'); ?> |
This file contains 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 | |
//Ab hier kopieren | |
/** | |
* Spamsichere E-Mail-Adresse mit WP-Shortcode | |
* @author Andreas Hecht | |
* @return E-Mail-Link | |
*/ | |
function ah_mail_shortcode() { |
This file contains 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 | |
// Ab hier kopieren | |
//WordPress Authentifikation löschen | |
remove_filter('authenticate', 'wp_authenticate_username_password', 20); | |
// Neue Authentifikation setzen - Anmelden nur mit E-Mail und Passwort | |
add_filter('authenticate', function($user, $email, $password){ | |
//Check for empty fields |
This file contains 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
<form method="get" class="searchform themeform" action="<?php echo home_url('/suchergebnisse/'); ?>"> | |
<div> | |
<input type="text" class="search" name="q" onblur="if(this.value=='')this.value='<?php _e('To search type and hit enter','hueman'); ?>';" onfocus="if(this.value=='<?php _e('To search type and hit enter','hueman'); ?>')this.value='';" value="<?php _e('To search type and hit enter','hueman'); ?>" /> | |
</div> | |
</form> |
This file contains 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
<form method="get" class="searchform themeform" action="<?php echo home_url('/'); ?>"> | |
<div> | |
<input type="text" class="search" name="s" onblur="if(this.value=='')this.value='<?php _e('To search type and hit enter','hueman'); ?>';" onfocus="if(this.value=='<?php _e('To search type and hit enter','hueman'); ?>')this.value='';" value="<?php _e('To search type and hit enter','hueman'); ?>" /> | |
</div> | |
</form> |