Context | Possibe values |
---|---|
default GMT offset or timezone string | Must be either a valid offset (-12 to 14) or a valid timezone string (America/New_York) |
start of week | 0 = Sunday, 1 = Monday (0 or 1) |
Events widget offset prefix | Used as part of a string like GMT+5 in the Events Widget. (?) |
draft_length | Maximum number of words used in a preview of a draft on the dashboard. (number) |
Comment number declension: on or off | If comment number in your language requires declension, translate this to ‘on’. (on or off) |
decline months names: on or off | If months in your language require a genitive case, translate this to ‘on’. (on or off) |
Word count type. Do not translate! | If your word count is based on single characters (e.g. East Asian characters), enter ‘characters_excluding_spaces’ or ‘characters_including_spaces’. Otherwise, enter ‘words’. |
Google Font Name and Variants | Use this to specify the proper Google Font name and variants to load that is supporte |
View double-translation-strings.php
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 | |
/** | |
* Plugin Name: Double every translation | |
* Description: Double every translation string for testing purpose. | |
* Plugin URI: https://torstenlandsiedel.de | |
* Version: 1.0 | |
* Author: Torsten Landsiedel | |
* Author URI: https://torstenlandsiedel.de | |
* Licence: GPL 2 | |
* License URI: http://opensource.org/licenses/GPL-2.0 |
View disallow-gptbot.php
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 | |
/** | |
* Plugin Name: Disallow GPTBot | |
* Description: Add line in robots.txt to disallow GPTBot. | |
* Plugin URI: https://torstenlandsiedel.de | |
* Version: 1.0 | |
* Author: Torsten Landsiedel | |
* Author URI: http://torstenlandsiedel.de | |
* Licence: GPL 2 | |
* License URI: http://opensource.org/licenses/GPL-2.0 |
View .htaccess
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
# Protect wp-login.php without interfering with post/page password protection | |
<files wp-login.php> | |
<If "%{QUERY_STRING} != 'action=postpass'"> | |
# Protect wp-login.php | |
AuthName "Login erforderlich" | |
AuthType Basic | |
AuthUserFile /path/to/password-file/.htpasswd | |
require valid-user | |
</If> | |
</files> |
View strings.md
View functions.php
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 | |
/** | |
* Add some preloading | |
* @link: https://www.phpied.com/faster-wordpress-rendering-with-3-lines-of-configuration/ | |
*/ | |
function hints() { | |
$wp_version = get_bloginfo( 'version' ); | |
header( 'link: </wp-includes/css/dist/block-library/style.min.css?ver=' . $wp_version . '>; rel=preload' ); | |
} | |
add_action( 'send_headers', 'hints' ); |
View wp-config.php
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
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_DISPLAY', false ); | |
define( 'WP_DEBUG_LOG', true ); |
View .htaccess
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
# Redirect from http to https | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
</IfModule> |
View custom-pattern.php
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 | |
/** | |
* Plugin Name: Custom Patterns for Antispam Bee | |
* Description: Add custom patterns for Antispam Bee. | |
* Plugin URI: https://torstenlandsiedel.de | |
* Version: 1.0 | |
* Author: Torsten Landsiedel | |
* Author URI: https://torstenlandsiedel.de | |
* Licence: GPL 2 | |
* License URI: http://opensource.org/licenses/GPL-2.0 |
NewerOlder