solved wordpress 3.3 dashboard blank issue

Recently, I came across very weird issue. I found wordpress 3.3 dashboard blank issue on my PC. There are many wordpress admin pages not shown to me. suddenly all admin pages became blank.
Only left side bar was visible to me. I checked my site in firefox, chrome, IE browser but same result. I am not able to see the posts, dashboard. Only left sidebar was visible.
I was using wordpress Version 3.3.2. I was using php 5.5 on my local box.

solved wordpress 3.3 dashboard blank issue

Note: This issue nothing to do with plugins or images. When I realized on production server I was using PHP 5.3 and local box I am using PHP 5.5 version. I quickly solved issue.

I enabled debug mode of wordpress using wp-config.php file. You can open wp-config.php file put following code in that.

* For developers: WordPress debugging mode.
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
define('WP_DEBUG', true);

When I checked apache error logs I found following error:

Fatal error: Access to undeclared static property: WP_Screen::$this in blog/wp-admin/includes/screen.php on line 706


This is old bug in WordPress 3.3 versions which causing issue.

To solve the issue you can update WordPress to the current stable release and do integration testing afterwards. Or you can do a quick bug fix.

Open file in your wordpress, wp-admin/includes/screen.php in any text editor.
On line no 706 find following PHP statement: <?php echo self::$this->_help_sidebar; ?>
Replace with above: <?php echo $this->_help_sidebar; ?>
Save changes and that will solve your issue.

<?php echo $this->_help_sidebar; ?>

Above code is working with PHP 5.3 version but with newer PHP 5.5 version. We are facing issues.

update wordpress user password through phpmyadmin

Many PHP new developer asked my how to update wordpress user password through phpmyadmin. It is very easy trick. Many PHP sites are using Md5 encryption logic for saving the password in database.

Similarly wordpress is using MD5 encryption for saving the password in database. We can easily keep any password and change through phpmyadmin for wordpress users very easily.

First we need to open phpmyadmin in your web-browser. open wp_users tables. You are able to see following screenshot when choose user for edit.


First select user for which you want to edit the password and click on change button. you will be able to see above image.

Important thing is, you need to select MD5 in function column for user_pass field. Than choose your password and click on go button.

It is very simple to change password using phpmyadmin for any php application if that application is using MD5 encryption logic for saving the password.

wordpress cron slowing site issue fixed

Many webmasters are facing wordpress cron slowing site issue. WordPress made in PHP, it has so provision for run the background job on certain time. WordPress made provision in CMS for task scheduler. For doing this for every request wp-cron.php is executing.

wp-cron.php is a virtual cron job executing file. This file may be checking for WordPress updates, sending email notifications, etc. WordPress will continue execute the wp-cron.php on each and every page load or request.

Due to execution on every request. Due to this, extra resource usage on your server. This cron job can take a minute or so to run, depending, on the size of the website. If your website doesn’t have a lot of visitors, it may not be an issue.

I have blogs which has huge traffic. Site slowness will impact your search engine ranking and site visitors.

What can be done to maximize the efficiency of the WordPress cron jobs? You can tell the WordPress installation that you’re going to handle the execution of the wp-cron.php file. We need to just use the following steps:

Open the wp-config.php file for editing and add the following line:


I am using Linux VPS which has centos 6 version. So I started cron service using following command.

/etc/init.d/crond start

After that use following command to installation of cron

crontab -e

Cron has a specific syntax which is very easy to understand:

  • Minute
  • Hour
  • Day of month
  • Month
  • Day of week
  • Command to execute

Just copy and paste following code in your cron file. Following code will executing after every 1 hour instead of executing on every request of wordpress. Wp-corn.php will be executed after every 1 hour.

5 * * * * /usr/bin/wget > /dev/null 2>&1

There are more samples which we can use in your cron file. Some samples as follows:

# hit this url to run the wordpress cron process every hour of every day

# this command will run at 12:05, 1:05, etc.

#curl > /dev/null 2>&1

#wget > /dev/null 2>&1

above simple trick will solve the wordpress cron issue. I applied above changes to my site and this wordpress cron slowing site issue fixed.

Shared Hosting

If you are using shared hosting than using FTP program, you can change and replace wp-config.php file first. Use following steps:

1) Login to our control panel, manage your service and in the service controls area, click the Cron Jobs link.
2) Click the add new cron job button at the top right.
3) In the “Add New Cron Job” area, click the “Common Settings” drop-down menu select the option for “Once an hour”.
4) In the “Hour” drop-down menu, select “Every 6 hours”.
5) In the “URL” field, type in the following:

Note: do not forget to change domain instead of

Tips For Designing Amazing WordPress Themes

Have you ever created a website on WordPress? If yes, Here are some great Tips For Designing Amazing WordPress Themes. I bet you know the order of actions: first, you choose a domain name and set up WordPress hosting, and after that choose a visual design. The installation of WP template takes no longer than a minute while the choice of appropriate options may last for days and require a lot of work since you have to pick the best one out of thousands of themes, each of which with its unique features.

Tips For Designing Amazing WordPress Themes-1
Tips For Designing Amazing WordPress Themes

Properly selected high-quality theme improves the appearance of a website, makes it unique and helps to create the required functionality. Standard templates included in the installation WP package are good enough for a small blog or website, but what if you need a large, complete, and versatile business?

Tips For Designing Amazing WordPress Themes

For the time I’ve been working at DesignContest, I selected and installed WP themes a lot of time. In the paper, I’m going to share the essential advice on this matter. So, let’s start!

Tips For Designing Amazing WordPress Themes-2

#1 Choose Between Free and Premium Themes


You can find over 2000 free templates for WordPress, but all of them have some drawbacks. The main inconvenience is that the majority of the free themes just stop being updated at some point. The reason for this is quite simple: since the producer earns nothing, he’s not interested in maintaining and adapting them up to advanced technologies.

If the theme ceases to be updated, you will likely have problems with the functionality of the website: for example, the pattern may begin falter after WordPress update, which may cause incorrect display of website pages.

If you take a free topic, please choose from the most popular ones on the WordPress website. At least, they are often updated and supported, which guarantees you the safe operation of the website for a long time. However, this approach has a significant disadvantage: about million of websites are already used these themes. Free-to-use templates are never unique.


Premium themes have many benefits, including regular updates, unique design, reliable support service, and more. As a rule, the price for a premium template is less than $ 60 – that’s a relatively small investment for a project with serious ambitions.

Tips For Designing Amazing WordPress Themes-3

#2 Make Sure the Topic of the Theme Comply with Your Business

Be sure to choose a template that is suitable for a category of the website. For example, business themes perfectly fit entrepreneurs’ websites while themes for kids are suitable for children’s stores. By the way, if you’re going to open an online store, make sure that the chosen template supports the use of plug-ins for eCommerce. Note that platforms for selecting and buying WP templates have an internal search on the subject: for example, by the “eCommerce” request you’ll get more than 200 ready-made templates for eCommerce. For more advanced search, you can use keywords like “business”, “music”, “kids” and so on.

#3 Check whether the Chosen Template is Compatible with Browsers and Mobile Devices

Since users come to the website from different browsers, the chosen theme should support at least the most popular ones: Google Chrome, Firefox, Opera, Internet Explorer, and Safari. Read the template description to find out whether it supports the browsers mentioned above, or check it by yourself.

The more browsers are supported, the wider the audience of your website. Give priority to the themes which support old versions of Internet Explorer. The prices for WordPress templates are almost equal, so there’s no reason to buy less functional at the same price and lose potential customers.

Of course, the template must be displayed correctly on all possible devices – from PCs to mobile phones. The share of mobile traffic is constantly growing and will grow even faster in the foreseeable future, so before buying the template, make sure it’s scalable, that is, automatically resized to full-screen mode when opened on a smartphone/PC/tablet.

Tips For Designing Amazing WordPress Themes-4

#4 Choose the Theme that is Easy to Customize

The more features the theme contains, the better. Ideally, it should contain enough features to ensure any color, font, and other changes you may desire.

If the topic does not include the necessary functionality, then you’ll have to install additional plug-ins, edit it manually, or ask for the help of a programmer.

#5 Check the Frequency of Updates and the Availability of Technical Support

I’ve already said about it above, but I want to emphasize one more time: if the topic is constantly updated, it means that the developers track the latest design/market changes and respond to them adequately. The regularity of updates, as well as the availability of free technical support, indicate the seriousness of the approach to the theme. Almost all premium WP themes are regularly updated and have free technical support.

WordPress Hacking and you What you can do

As if website hacking is not something new to you, to mention hacking of WordPress sites could just sound like another form of it. But you’re relying on the wonderful technology that WordPress provides to post, manage and display your website content could mean just being over –confident or outright ignorant about the perils that are already the matter of concern in the wide world of website design.

Wordpress Hacking and you
WordPress Hacking and you

Any website is hacked for a variety of reasons; to steal information, to place spammy links, to feed on the traffic a particular website has to ones advantage and much more. This is not very different with hacking of WordPress sites too. WordPress works almost entirely on its plugins and a well devised database to create a system where dynamic content is a cakewalk for anyone, who owns a website, to manage. Hackers simply find the vulnerability in a plugin, insert a malicious code or code edit and gain access to the database that manages all content. There, they can place SQL codes to manipulate the website’s content and pretty much have your website under their control.

Why WordPress is a point of concern?

Why WordPress is a point of concern
Why WordPress is a point of concern


The turn of events, making a highly desirable and easy technology as WordPress, utilized for website designing from just being a blog building platform, to be a vulnerable target for hackers to break in to, is more of a recent development. The interesting facts related to this phenomenon are;

  • WordPress’s popularity has soared across the world and currently accounts for a huge share of websites built and maintained around the world.
  • Ease with WordPress in building websites has misled website owners to a false sense of security also. Most of this is seen among small businesses and startup companies who are also happy with the lesser investment it needs.
  • Following the last point, a large group of website owners don’t really religiously update their WordPress installations, whereby rendering themselves vulnerable to security loopholes that hackers utilize.
  • The third-party plugin developers are also risking their customers with plugins that has not been tested enough and neither been created with farsightedness.

Let’s try a more technical view of this scenario.


  • On a development level, bad coding can create vulnerabilities that hackers can use to their advantage
  • At the administrative level, applying poorly constructed passwords can make access to skilled hackers very easy
  • Plugins developed without a good amount of testing and a stable and fool-proof coding can compromise the website’s security on a whole
  • Website owners/managers who do not care to do regular WordPress updates puts themselves at great risk of falling prey to newer hacking attacks

So how do I safeguard myself?


It’s one thing to operate and manage WordPress modules at an operational level, where you essentially add and edit content for your website. When it comes to making your WordPress website safe from hackers, you definitely need to meet the experts and get things done. Nevertheless, you had better looked up for the following cues;

  • Are there pages in your websites failing to appear as expected?
  • Is your admin area failing to perform at any point?
  • Have you verified that new plugin that you have considered attaching to your website?
  • Are you getting a lot of spam emails lately?

If any of these cues turns on, it’s time for you to call for technical experts like hosting supporters to get your website checked. Few of the measures that can help in preserving your website are;

  • Take backup of your website data regularly
  • Change your passwords to stronger ones. The more mixed up and complex, the better
  • Use WordPress security keys. Your hosting support should know that in the file wp-config.php there is a place where you can enter encrypted security keys for information stored in your cookies. Go to to generate your keys and update your wp-config.php
  • Delete plugins that cannot be trusted or those that are not in use anymore
  • If you can make out from the Error log file, it will tell you which file is causing the issue. You can replace or remove those files
  • It is best to upgrade your WordPress to latest versions. This also includes your Worpress theme
  • Check for file permissions and upload permissions
  • Use some security plugins like the ones listed below
    • Wordfence
    • All in One Security Firewall
    • Sucuri Security
    • iThemes Security (formerly Better WP Security)
  • Change WordPress Table prefix. This is something your tech support understands and can help you with
  • If you have any contact forms in your website, crosscheck with developers if that form is built with core CT standards.


WordPress has made building and maintaining websites a wonderful experience for you. But as much a great tool it is, it can serve you with its caliber when you keep it updated and well-maintained. Your diligence will pay off with your WordPress installation giving you the great advantage of seamless website performance for a long time into the future.

9 Easy Ways to Speed Up Your WordPress Site

We will give you 9 Easy Ways to Speed Up Your WordPress Site If you have been part of virtual world for some time, it’s least likely that you haven’t heard about WordPress, but did you know?

Speed Up Your WordPress
Speed Up Your WordPress

I think this might give you a hint of how popular WordPress is right now (and its popularity doesn’t seem to halt anytime soon!).

And oh, my bad, I forgot to mention these few bits:


Fact of the matter is that WordPress serves amazingly well as an efficient CMS platform, but it can slow down as well if it’s not optimized rightly. And trust me, you don’t want this. Why? Because a study by shows that:

  • 47% people showing up on a website expect the page to load in less than two seconds.
  • 40% are likely to move elsewhere from a web page that takes over three seconds to load.
  • 52% of online shoppers confessed to show loyalty to a site whose web pages load quickly.

Speed Up Your WordPress

So, here I am with these 9 tips to help you get the best of WordPress in speed.

1. Start with a fast and reliable web hosting company

One of the simplest (and yet overlooked!) ways to improve your WordPress site is to resort to a fast as well as reliable web host. I recommend not going for cheap shared hosting solutions, as those are really overcrowded and you might end up sharing your hosting resources with hundreds of other users.

So many hosting companies impose various limitations to their shared hosting plans, hosting (read hording!) hundreds of sites on just one server to slash hosting fees, which chokes the resources. The better alternative is to go for a VPS or managed WordPress hosting depending upon your site visitors, business niche and financial viability.

2. Choose an efficient framework/theme

This is where sometimes even people having years of experience can make a mistake, i.e. choosing an inefficient and heavy framework/theme. Many people trade speed and efficiency of a WordPress framework/theme with unnecessary features, which can affect them seriously.

It’s better to keep away from bloated frameworks loaded with fancy features (which a serious web contender seldom needs) that can delay the process of crawling your site. Similarly, too much plugins also take a toll on your site speed. So, make sure you equip your website with only what it needs to keep up with its functionality seamlessly.

3. Resort to helpful caching plugins

Talking of plugins; instead of falling for some fancy plugins that might choke the speed of your site; go for caching plugins, which are designed to help improve page loading time significantly. The best thing is that you can get all of them on free of cost and they are not complicated to use at all.

Based on my personal experiences, I would recommend W3 Total Cache rather than trying anything else. It is loaded with all features that can help you better your site speed. It doesn’t take either much of time or effort in downloading, installing and using it.

4. Make use of a CDN (Content Delivery Network)

You might have never heard of this, but all those big blogs out there that you like so much, are making use of CDN, also known as Content Delivery Network. It is one great way of reducing loading time of a webpage.

What it does is collects all the static files present on your website (images, CSS, javascript, etc), places them strategically on a collection of serves across the globe. Now whenever a visitor wants to download them, he is routed to the server located closest to him geographically, saving much of his time doing so.

There is also another aspect to this. Since the content of your site is being loaded from multiple servers in different locations, any traffic spike is least likely to bother visitors.

5. Leverage image optimization

Many of you must have used or at least heard of, a wonderful image optimizer used by Yahoo. It helps you reduce image file size drastically, more importantly, without affecting quality of the image.

The good news is that you can do the same on WordPress with a plugin called WP-SmushIt for free. In fact, if you have it installed, it will optimize all images that you choose to add to your site by itself, automatically, leaving not much on you to worry about.

6. Don’t forget about WordPress database optimization

Fact of the matter is that you cannot expect a database-driven website (all CMS-based sites including WordPress) to work well without optimizing your database.

There are a few things you have to consider in this regard, starting from monitoring code for slow queries. For sites on VPS or dedicated server, enabling query caching and optimizing database server configuration does the trick.

Or, you can resort to a wondrous tool like WP-Optimize plugin, which will take care of all such concerns without even letting you know when and how it’s done.

7. Homepage needs optimization too

Call it tweaking if too much of ‘optimization’ is driving you crazy, but you can’t overlook it if you want your WordPress site speed up. Though whole of your site should be fast enough, but homepage remains the most important part of your site, as majority of people will land there more than anywhere else on a website. Some of the things you can do to optimize homepage of your website include:

  • Limit the number of posts to be seen on a page.
  • Display a brief excerpt as an intro with your posts rather than showing full post.
  • Cut down the number of social sharing widgets on homepage

In short, these are just a few things to help you make your homepage load quick; ultimately do everything possible to keep it this way.

8. Introduce LazyLoad

Well, this is another great way of serving your visitors with a quickly loading webpage. It involves loading only those images on a webpage that are above the fold (the images which visitors can see in their browser windows). The next set of images is loaded as soon as a visitor scrolls down, minimizing loading time ingeniously.

This not only results in your page loading quickly, but it also helps in saving your bandwidth, as less data is loaded for users who don’t scroll down through the end.\

9. Avoid Pingbacks and Tracbaks

WordPress is designed to respond to the requests from other blogs featuring pingbacks and trackbacks by default, which ends up harming more than charming when it comes to site speed. Turning this intrinsic feature off in your WordPress settings will not affect the backlinks strengthening the position of your website; it will just reduce extra labor.

Over to you now

This is where my list to improve WordPress site speed ends for now, but this can’t be all about it, surely. That’s why I am handing it over to you now; feel free to share your experiences and opinions with us on this in the comment section below.

Disable sending password email to new wordpress users

Some days before I installed new wordpress 4.3 version, I came across with issue of sending email forcefully to new wordpress user on their email address. Many times wordpress admin wants to create users like authors, contributers and subscribers in their website. But with newer version of wordpress, we cannot create wordpress users without informing them.

This password email change is added for better security. This feature has following feature.

– Strong admin control over options

– Random generator is fine, but

– Strong passwords mandatory, at least XX (16? 20?) characters

Here is tutorial for disable sending password email to new wordpress users

Following is screen shot of user creation form in wordpress 4.3 and newer version.

Disable sending password email to new wordpress users
Disable sending password email to new wordpress users


Many times, I requested to add guest post so, I wanted to create contributes. But due to this feature, I cannot create users without email confirmation.

Here is solution:

You can add following code in your functions.php file, which you can find in your wordpress theme folder.

// Fix New User Email Send
if ( !function_exists('wp_new_user_notification') ) :
function wp_new_user_notification( $user_id, $notify = '' ) { }

After adding this code, I am able to create wordpress user without sending email to user.

Tutorial for Solving WordPress Errors or Bugs

WordPress is the most reliable Content Management System that offers millions of handy plugins. With the help of powerful plugins, you can make your website look professional and attractive.

A plugin refers to a series of functions that is added to your WordPress site to expand its functionality. That means you can introduce any function to your site by adding the most suitable and relevant plugin.

Sadly, plugins can also create troubles like a problem occurs in any piece of coding.


Error in a plugin is the biggest challenge for the web developer as it can create a lot of problem in your site. Plugin errors can occur after installing, updating the plugin or after updating the WordPress core to the latest version.

Normally, A Plugin Error Occurs Due to the Following Issues:

  • Poor Coding – A badly coded plugin will create problems regardless what type of plugin or theme you are using.
  • Clash with Another Plugin – It is not necessary that all the plugins added in the WordPress site will play the similar role. And when the plugins provide similar functionality then there will be a change of conflict between the two plugins.
  • Clash with WordPress – There will be a possibility that a plugin code gets incompatible with the code used in the WP core files. Due to this, many plugin developers update their plugin after the release of new version of WordPress to ensure that all the plugins are compatible.
  • Conflict with the Site’s Theme – Many theme functions are located in the theme’s function.php.file. The basic rule of expanding the theme’s functionality by using function is the same as adding functionality via plugin. Virtually, problems can arise if they are coded poorly.

Do you know, a plugin displays an error message in your admin panel or stops the plugin’s functionality? Through this, you can detect the plugin error in your WordPress site.


However, the most tremble situation occurs when the white screen of death appears on your live website. If it happens in the admin area, then this blank screen will prevent you. But, if this blank page will display on your live website, then you might get into the daunting situation.

What to Do Next after Viewing an Error Message?

You can resolve any plugin error by locating the plugins (that is creating problems) and deactivating it. When an error code is presented, the location of the problematic file will be showcased in the error message.

Suppose, you updated multiple plugins at the same time, then it would become difficult to detect which plugin is causing the error. But, the error message contains the exact location of the file that is causing the error.

What to Do Next if You Can Access Your Plugin Admin Page?

If you find any error message or if the message doesn’t help detecting the plugin that is causing the error, then you will be required to locate that plugin manually. You can deactivate all the added plugins by using the bulk action option.

After deactivating all plugins, you need to reactivate all your plugins one by one. Once all plugins are activated, check your live website to see, is there are any messages or not. It is one of the traditional and efficient ways for detecting any plugin error.

If you are still viewing the error on your site after deactivating all plugins, then one thing is pretty clear that a WP plugin is not the cause of the error.

What to Do When You See the White Screen of Death in Your Admin Area?

If you see the white screen of death in your admin area, then you will not be able to deactivate all the plugins through WP admin panel.

But, you don’t need to worry because there is an easy way that can help you deactivate all your plugins. You only need to do is:

  • Connect to your WordPress Website by using FTP (File Transfer Protocol) client like FileZilla.
  • Create a backup of all the plugin files and folders placed at to a safe location on your system.
  • Delete all the plugins and folders.
  • Re-upload all of them to the plugin folder.
  • Trashing all of your plugins will automatically deactivate them. But, you need to reactivate them after uploading the plugin files.
  • Now, you can reactivate each of the plugin one by one.

Are Plugins the Main Cause of the Error?

We cannot blame plugins for the WordPress errors. If you deactivated all plugins and still see the same error, then a plugin is not the main cause for the error.

It can be your WordPress themes as well. A theme developer adds more and more functions to extend capabilities of their themes built from provided designs. But due to this, your theme may clash with the plugin, particularly when you install a plugin that installs similar functionality.

Other Reason for the WordPress Error:

Memory limits: Few plugins are known for being CPU or memory hogs. If you exceed your estimated limit, then you may see the white screen of death on your live WordPress site.

A Corrupt .htaccess File: In order to check your .htaccess file is creating problems, you can delete the file through FTP and upload the previous safe version.

Corrupted Core Files: Sometimes, core WordPress files get corrupted. Therefore, it is cautious to re-upload all core WP files to ensure the core files have uploaded accurately.


In this blog, we have discussed the points for solving the WordPress error or bug. As we know, plugins are the most important part of your website, but, sometimes, it creates trouble or problem that needs to be resolved as quick as is possible.

In order to detect the plugin error, you need to delete all the plugins and re-upload them. Deleting all plugins will automatically deactivate them. But, you need to reactivate them one by one and encounter the plugins that are causing the error.

Don’t Fall For This Common WordPress Scam

WordPress is extremely popular. It powers over a fifth of the tens of millions of sites on the web. One of the reasons it’s so popular is the ease with which inexperienced people can build a site with WordPress. The ability of WordPress to empower millions by giving them a voice on the web is awe-inspiring. But there are those who would prey on the less-informed and take advantage of their lack of experience.

Don't Fall For This Common WordPress Scam
Don’t Fall For This Common WordPress Scam

WordPress is a modular system: much of its functionality is contained in third-party plugins and themes. For the most part, the plugin and theme ecosystem is at worst benign and at best incredibly useful. Unfortunately, parasitic “hackers” use plugins and themes as a vector for malware.

It usually works something like this. An individual who lacks to the skill to contribute something useful to the world will buy a premium WordPress plugin. The PHP code for plugins is easily modified. The malefactor will change the plugin’s code; they will add malware payloads and code to exploit the vulnerabilities in people’s browsers. The modified plugin will then be sold on a seemingly legitimate marketplace for a fraction of the original cost. To the inexperienced, it just looks like a great bargain.

The WordPress user suckered by the offer will install the plugin on their site, and it will work just as it’s supposed to. From the perspective of the site owner, they got what they needed. But the extra code in the plugin will infect the site’s users with malware, redirect them to dangerous sites, create thousands of additional pages for SEO poisoning, and any number of other unpleasant strategies that benefit the hackers.

The first thing a site owner is likely to know about the problem is when they get an email from Google informing them that their site is infected and has been blocked by browsers and dropped from the search index.

How To Avoid Being The Sucker

The advice here is quite simple. Don’t buy discounted themes and plugins you find on Google. Don’t download premium themes and plugins when they are offered for free. Always make sure that you are downloading from a recognized or reputable repository or developer.

Unless you really know what you are doing, for free themes and plugins stick to WordPress’ official repositories. Almost every free theme and plugin is there, and unless you have the expertise to check the code yourself or trust someone who does, it’s not worth the risk of downloading them elsewhere.

For premium plugins and themes, the situation is a little more complex. They are often sold via the developer’s site and theme marketplaces, and it can be tricky to assess the legitimacy of the source. Use your common sense: if it’s too good an offer to be true, avoid it. Research to find out who the developer of the plugin is, and make sure you are downloading from their site or from a reputable marketplace like ThemeForest.

how to change wordpress role name without plugin

There are many roles in wordpress (Administrator, Editor, Author, Contributor, Subscriber)  If you want change default role names as per your project requirement. There are many reasons where we wanted to change role name and capabilities of wordpess users.

how to change wordpress role name


how to change wordpress role name without plugin
how to change wordpress role name without plugin

Using simple code you can change worpdress role names. You just need to put following code in your functions.php file. This file you can find in wordpress theme folder.

function wpapi_change_role_name() {
    global $wp_roles;

    if ( ! isset( $wp_roles ) )
        $wp_roles = new WP_Roles();

    //You can list all currently available roles like this...
    //$roles = $wp_roles->get_names();

    //You can replace "administrator" with any other role "editor", "author", "contributor" or "subscriber"...
    $wp_roles->roles['administrator']['name'] = 'Owner';
    $wp_roles->role_names['administrator'] = 'Owner';           
add_action('init', 'wpapi_change_role_name');

Using above you you will be able to change role names. Here using able above code, administrator role name will be replaced with Owner role name.

If you want to add new role to your wordpress website than use following simple code. As per above code, following code also, you need to copy paste in functions.php file.

$result = add_role(
    __( 'Basic Contributor' ),
        'read'         => true,  // true allows this capability
        'edit_posts'   => true,
        'delete_posts' => false, // Use false to explicitly deny
if ( null !== $result ) {
    echo 'Yay! New role created!';
else {
    echo 'Oh... the basic_contributor role already exists.';

Using above code you will create the “Basic Contributor” Role in wordpress website. You can use above code in wordpress theme or plugin. There are many wordpress hooks which really helpful for managing wordpress roles and capabilities.

If you have any doubts or question than write comments bellow.