Skip to content

Rename WordPress roles

    Have you ever wanted to change the default role names (Administrator, Editor, Author, Contributor, Subscriber) within WordPress? Here is a super useful snippet to do so. Simply paste this code into your function.php file. Edit lines 5 and 6 at your convenience. function wps_change_role_name() { global $wp_roles; if ( ! isset( $wp_roles ) ) $wp_roles = new WP_Roles(); $wp_roles->roles[‘contributor’][‘name’] = ‘Owner’; $wp_roles->role_names[‘contributor’] = ‘Owner’; } add_action(‘init’, ‘wps_change_role_name’);

    How to remove login shake effect when error occurs

      If you don’t like the “shake” effect which occurs each time a login error occurs? Here is a super easy snippet to remove it for good. Simply paste the following code into your functions.php file: function wps_login_error() { remove_action(‘login_head’, ‘wp_shake_js’, 12); } add_action(‘login_head’, ‘wps_login_error’);

      WordPress tip: move all JavaScript files to the footer automatically

        In order to improve the loading time of your WordPress blog, it is recommended that you move JavaScript files to the bottom of your HTML documents. Unfortunately, it isn’t always as easy as it seems, especially when using some plugins who inject code in the header. Here’s a simple solution to automatically move all JavaScript files to the bottom. First, open your functions.php file and paste the following code in it: /** * Filter HTML code and leave allowed/disallowed tags… Read More »WordPress tip: move all JavaScript files to the footer automatically

        44 Free SEO Tools to Cover All SEO Needs In 2018

          When it comes to SEO, one must need to use a variety of Tools to speed up the data collection, research and processing works. There are thousands of tools out there. Some very good tools are paid and highly Expensive. So if you are a newbie or a Freelancer, they might be out of your Budget. But there are again some few Good and FREE Tools, to get you Sorted. 1. Google PageSpeed Insights Enter a URL, and this tool… Read More »44 Free SEO Tools to Cover All SEO Needs In 2018