Archives for May 2016

May 28, 2016 - No Comments!

How to add a new admin user to WordPress via PHPMyAdmin

First of all this article intends to help all admins who are unable to login to WordPress control panel and aren't able to reset the password using the standard WordPress procedure, and so the only way is to add an admin user via database.

Sometimes you may need to add an admin user to a WordPress site via PHPMyAdmin; this short tutorial could help you accomplish this safely, using only a few queries.

Please note, I suggest you to backup your database as first step, so you could restore it if some problems arise.

Ok, do you save the backup in a safe place? Ok, let's go!

First of all log into your PHPMyAdmin interface, click on "SQL" label (on top right panel) and then copy and paste these lines:

Read more

May 16, 2016 - No Comments!

How to add allowed html tags on WordPress

WordPress is making great strides in security, but sometimes we need more control over the HTML tags allowed to be used in comment and post content.

Are you ready? Let's take a look to "wp_kses_allowed_html" filter, to add more allowed html tags to use in your WordPress themes and plugins.

KSES is an HTML filtering system used by WordPress to seek through variables looking for HTML, it strip all HTML tags except the allowed ones. This functionality was implemented to prevent intruders can inject malicious code in your WordPress site; great, isn't it? 🙂

Read more