My plugin for using REGEXP_REPLACE to optimize the search: https://wordpress.org/plugins/ignore-block-name-in-search/
Note
Please check your page builder if the native search still works!
<?php | |
// See: https://www.elegantthemes.com/blog/divi-resources/how-to-add-the-last-updated-date-to-divis-blog-post-meta-data#option-4-displaying-both-the-publish-and-last-updated-dates-without-time | |
function et_last_modified_date_blog( $the_date ) { | |
if ( 'post' === get_post_type() && !is_admin() ) { | |
$the_time = get_post_time( 'His' ); | |
$the_modified = get_post_modified_time( 'His' ); | |
$last_modified = sprintf( __( 'Zuletzt aktualisiert am %s', 'Divi' ), esc_html( get_post_modified_time( 'j. F Y', false, get_the_id(), true ) ) ); | |
$published = sprintf( __( 'Veröffentlicht am %s', 'Divi'), esc_html( get_post_time( 'j. F Y', false, get_the_id(), true ) ) ); |
/* | |
Submit button aligment "center" does not work correctly: | |
https://stackoverflow.com/questions/72353817/contact-form-7-submit-button-alignment-issue | |
*/ | |
.wpcf7-spinner { | |
display: block; | |
top: 15px; | |
left: 45%; | |
} |
<?php | |
/* Add two more user roles for viewing and managing Koko Analytics */ | |
/* See: https://www.kokoanalytics.com/kb/how-to-give-other-wordpress-users-access-to-the-koko-analytics-dashboard-page/ */ | |
add_role( 'koko_analytics_viewer', 'Koko Analytics Viewer', array( 'read' => true, 'view_koko_analytics' => true ) ); | |
add_role( 'koko_analytics_manager', 'Koko Analytics Manager', array( 'read' => true, 'view_koko_analytics' => true, 'manage_koko_analytics' => true ) ); |
My plugin for using REGEXP_REPLACE to optimize the search: https://wordpress.org/plugins/ignore-block-name-in-search/
Note
Please check your page builder if the native search still works!
<?php | |
/** | |
* Plugin Name: Repair AJAX comments for Antispam Bee | |
* Description: Add honeypot check and enable AJAX for Antispam Bee. | |
* Plugin URI: https://torstenlandsiedel.de | |
* Version: 1.0.0 | |
* Author: Torsten Landsiedel | |
* Author URI: https://torstenlandsiedel.de | |
* Licence: GPL 2 | |
* License URI: http://opensource.org/licenses/GPL-2.0 |
define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true ); |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>WordPress plugin preview</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> |
<?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 |
<?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 |
# 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> |