Multi site error when registering users

I was getting this message on a multi site install that I was working on: Usernames can only contain lowercase letters (a-z) and numbers. I haven’t dug into this yet, it seems like this popped up in WP 4.4. Here is how I have gotten around it: function amr_wpmu_validate_user_signup( $userinfo ) { if ( array_key_exists( […]

Adding code to allow an iframe in WordPress

I know there are security risks, a bad implementation, bad user experience, etc, but sometimes the client insists on it. Here is how allow iframes in posts and pages: add_filter( ‘wp_kses_allowed_html’, ‘ar_allowed_tags_filter’, 1, 1 ); function ar_allowed_tags_filter( $allowed_tags ) { if ( ! current_user_can( ‘publish_posts’ ) ) { return $allowedposttags; } $allowed_tags[‘iframe’] = array( ‘align’ […]

Adding a Favicon correctly in WordPress

There are 19 different ways to “load” a favicon. You can put it in the of the site, just like how you would with a static site. I tend to a lot of people recommending of dropping your favicon into the root of your site, for example: https://aaronreimann.com/favicon.ico. But, what if people switch hosting and […]