WordPress Plugin: DREIDREIEINS-Web Support

Plugin:

dieses Plugin erstellt ein Widget im Dashboard von WordPress.

Installiere es über Plugins > Installieren > Hochladen

DREIDREIEINS-Support.zip

Version: 1.4
Datum: 22.04.2019

Changelog:

Version 1.5 – 26.09.2019

  • 331.de Domain

Version 1.4 – 22.04.2019

  • Optimierungen
  • Buttons in Widgets
  • Header aufräumen
  • Verstecke WP Logo Adminbar

Version 1.3 – 06.05.2018

  • DSGVO Deaktivierung von IP in Comments
  • DSGVO Deaktivierung von Emoji
  • Link setzen zu service.dreidreieins-web.de
  • Extend login cookie
  • hide login Error Message -> only „incorrect login details“

Version 1.2 – 04.11.2017

  • Brand DREIDREIEINS Web & Service-DREIDREIEINS-Web

Version 1.1 – 30.09.2015

  • „Remember Me“ checked on loginpage

Version 1.0 – 27.05.2014

  • Branding DREIDREIEINS

Version 0.5 – 27.08.2013

  • Theme und Plugin Editor deaktiviert

Version 0.4 – 18.06.2013

  • Hinzufügen von farblich-markierten Entwürfen

Version 0.3 – 21.12.2012

  • Lauffähige Version

TODO einarbeiten in Plugin

Hide Author Usernames

functions.php

add_action(‘template_redirect’, ‘bwp_template_redirect’);

function bwp_template_redirect()
{
if (is_author())
{
wp_redirect( home_url() ); exit;
}
}

DONE eingearbeitet in Plugin

Header aufräumen

meta tag „generator“ entfernen
remove_action( ‚wp_head‘, ‚wp_generator‘ );

link tag „wlwmanifest“ entfernen <link=“wlwmanifest“ type=“application/wlwmanifest+xml“ href=“http://www.example.com/wp-includes/wlwmanifest.xml“> remove_action( ‚wp_head‘, ‚wlwmanifest_link‘ );

Einzelne Fehler

Markierung(CSS) der ungeraden Privat/Entwurfsseiten im Backend

Eingearbeitet in Plugin-Version: 1.4

Emojis in WordPress deaktivieren

Emojis in WordPress sind überflüssig

Quelle: https://fastwp.de/4903/

function remove_emoji()
{
remove_action(‚wp_head‘, ‚print_emoji_detection_script‘, 7);
remove_action(‚admin_print_scripts‘, ‚print_emoji_detection_script‘);
remove_action(‚admin_print_styles‘, ‚print_emoji_styles‘);
remove_action(‚wp_print_styles‘, ‚print_emoji_styles‘);
remove_filter(‚the_content_feed‘, ‚wp_staticize_emoji‘);
remove_filter(‚comment_text_rss‘, ‚wp_staticize_emoji‘);
remove_filter(‚wp_mail‘, ‚wp_staticize_emoji_for_email‘);
add_filter(‚tiny_mce_plugins‘, ‚remove_tinymce_emoji‘);
}
add_action(‚init‘, ‚remove_emoji‘);
function remove_tinymce_emoji($plugins)
{
if (!is_array($plugins))
{
return array();
}
return array_diff($plugins, array(
‚wpemoji‘
));
}

How to Stop Storing IP Address in WordPress Comments

Method 2: Manually Stop Storing IP Addresses with WordPress Comments

Quelle: http://www.wpbeginner.com/wp-tutorials/how-to-stop-storing-ip-address-in-wordpress-comments/

function wpb_remove_commentsip( $comment_author_ip ) {
return “;
}
add_filter( ‚pre_comment_user_ip‘, ‚wpb_remove_commentsip‘ );

Remove WordPress Logo from Admin Bar

DREIDREIEINS-Support.php

function admin_bar_remove_wp_logo() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu( ‚wp-logo‘ );
}
add_action( ‚wp_before_admin_bar_render‘, ‚admin_bar_remove_wp_logo‘, 0 );
}
add_filter( ‚pre_comment_user_ip‘, ‚wpb_remove_commentsip‘ );

Eingearbeitet in Plugin-Version: 1.4

Set “Remember Me” To Checked

The “Remember Me” checkbox is unchecked by default. I like to check this when I login, but sometimes I forget, only to realize afterwards that I forgot and it’s too late. Doh!

To leave this box always checked, add this snippet to functions.php:

function login_checked_remember_me() {
add_filter( login_footer, rememberme_checked );
}
add_action( init, login_checked_remember_me );
function rememberme_checked() {
echo <script>document.getElementById(‚rememberme‘).checked = true;</script>;
}

Hide the Login Error Message

When you enter an incorrect username or password, the login page returns an error message telling you which details you got wrong. If your username is correct but password is wrong, it will say your password was wrong. If you typed the wrong username, it says “Invalid Username.” While the message may be helpful for you, the problem is that hackers can use this information to guess your login credentials and gain access to your website.

The easiest way around this is to change the error message with this code in your functions.php file:

function login_error_override()
{
return Incorrect login details.;
}
add_filter(login_errors, login_error_override);

[/vc_column_text][vc_column_text]

How To Extend Auto Logout Period In WordPress

When you click on “Remember Me” option on the login page of your WordPress, it’ll keep you logged in for 2 weeks. If you don’t, it’ll keep you login for 2 days. However, you can extend auto logout period in WordPress with this code. Keep in mind that it will affect site’s security by keeping user logged in for too much time.


add_filter( ‚auth_cookie_expiration‘, ‚custom_login_cookie‘ );
function custom_login_cookie() {
return 31536000; // one year in seconds
}

[/vc_column_text][/vc_column][/vc_row]

Let’s Get Started

Bereit für eine echte Veränderung?
Lassen Sie uns gemeinsam ihre Projekte umsetzen!

Webdesign • WordPress • Webentwicklung • Webshop • Support • SEO • SEA
aus Potsdam für Berlin, Brandenburg, Deutschland und eigentlich die ganze Welt