Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
T5 Trim Password
<?php # -*- coding: utf-8 -*-
* Plugin Name: T5 Trim Password
* Description: Remove leading and trailing spaces from automatically generated passwords.
* Plugin URI:
* Version: 2012.09.13
* Author: Thomas Scholz
* Author URI:
add_filter( 'random_password', 'trim' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment