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
#!/bin/bash | |
# Install dependencies | |
# older ubuntus | |
#apt-get install build-essential libsqlite3-dev ruby1.9.1-dev | |
# xenial | |
apt install build-essential libsqlite3-dev ruby-dev | |
# Install the gem | |
gem install mailcatcher --no-ri --no-rdoc |
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
@ini_set("max_execution_time", 300); | |
@ini_set("memory_limit", "256M"); | |
define('WP_MEMORY_LIMIT', '512M'); | |
define('DISABLE_WP_CRON', true); | |
// | |
ini_set('error_reporting', E_ERROR); | |
define('WP_DEBUG', true); | |
define( 'WP_DEBUG_LOG', true ); | |
define('WP_DEBUG_DISPLAY', false); |
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
RewriteEngine on | |
# Force www: | |
RewriteCond %{HTTP_HOST} !^$ | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteCond %{HTTPS}s ^on(s)| | |
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
# Alternativ: Force NON-WWW | |
#RewriteBase / |
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
## EXPIRES CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/gif "access plus 1 month" | |
ExpiresByType image/png "access plus 1 month" | |
ExpiresByType image/jpeg "access plus 1 month" | |
ExpiresByType image/jpg "access plus 1 month" | |
ExpiresByType image/svg+xml "access plus 1 month" | |
#ExpiresByType text/css "access plus 1 day" | |
#ExpiresByType text/html "access plus 1 day" |
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
## EXPIRES CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/gif "access plus 1 month" | |
ExpiresByType image/png "access plus 1 month" | |
ExpiresByType image/jpeg "access plus 1 month" | |
ExpiresByType image/jpg "access plus 1 month" | |
ExpiresByType image/svg+xml "access plus 1 month" | |
#ExpiresByType text/css "access plus 1 day" | |
#ExpiresByType text/html "access plus 1 day" |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress |
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
if ( function_exists('wl_stop_update_emails')) { | |
add_filter( 'auto_core_update_send_email', 'wl_stop_auto_update_emails', 10, 4 ); | |
function wl_stop_update_emails( $send, $type, $core_update, $result ) { | |
if ( ! empty( $type ) && $type == 'success' ) { | |
return false; | |
} |
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
if ( ! function_exists( 'weslink_change_wordpress_errors' ) ) { | |
function weslink_change_wordpress_errors(){ | |
return 'Irgendetwas ist hier falsch!'; // Hier kann man eine beliebige Fehlermeldung ausgeben | |
} | |
} | |
add_filter( 'login_errors', 'weslink_change_wordpress_errors' ); |
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
if ( ! function_exists( 'weslink_wordpress_admin_account' ) ) { | |
function weslink_wordpress_admin_account() { | |
// Hier setzen Sie ihre neuen Daten fest | |
$username = 'Benutzername'; | |
$password = 'Passwort'; | |
$email = 'email@ihre-domain.de'; | |
// Ab hier müssen Sie nichts mehr machen | |
if ( ! username_exists( $username ) && ( ! email_exists( $email ) ) ) { | |
$user_id = wp_create_user( $username, $password, $email ); |
NewerOlder