How to Disable the WordPress Upgrade Message in the Dashboard

By | Tutorial | No Comments

There was a huge debate on Digging into WordPress blog whether developers should let their client’s upgrade or not. We believe to educate our clients and encourage them to be self-sufficient therefore we have created an infographic that shows you a step by step guide to upgrade WordPress. For Backing up WordPress, we recommend using BackupBuddy Plugin to our clients. But we do have clients that do not want to deal with maintenance updates, so they want us to take care of them therefore we also have that option available. For these clients, we hide the WordPress Upgrade Message.

All you have to do is simply open the theme’s functions.php file and add this:

add_action('admin_menu','wphidenag');
function wphidenag() {
  remove_action( 'admin_notices', 'update_nag', 3 );
}

 

There are plugins available that does this job, but we prefer to use the code above. Now remember, this only removes the upgrade bar that shows on all screens. It does not disable the Plugin updates or theme update notifications that shows up on the update page. For our clients that have us do the maintenance for them, we make sure that their site is up to date with all plugins, and the core.

Now Jeff Star posed an issue that he has to go in client’s dashboard to see whether plugins and such are activated. Well we already have a fix for that. We are using WP Status Dashboard (Our Tutorial on How to use WP Status Dashboard). This plugin/script lets us view all of our clients information on one screen, so we know exactly what needs to be upgraded on which client.

Remember, keeping your WordPress up to date is essential for site security. So if you do remove the nag, you need to stay on top of the upgrades for your clients.

wordpress remove header footer tag

WordPress custom functionremoving all links in the header and footer

By | Tutorial | No Comments

Does people know how to remove the WordPress JSON API links in the header tag?


<head>
...
<link rel='https://api.w.org/' href='http://example.com/wp-json/' />
<link rel="alternate" type="application/json+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=..." />
<link rel="alternate" type="text/xml+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=..." />
</head>

This custom function should help removing all links in the header and footer:
Read More

woocommerce-custom-product-search

Woocommerce custom product search box

By | Tutorial, woocommerce | No Comments

The product search box widget loads the search box using the template function:
get_product_search_form() It then looks for the product search form in the file ‘product-searchform.php’ or uses its default markup. You can override the default WooCommerce template product-searchform.php by customizing the markup.

For reference, the default markup is:
Read More

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

By | Tutorial | No Comments

Trying to install wordpress in debian server server. Where MySql already exist which is running fine in local server but when I am opening my wordpress blog showing this error:

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

 

How do I fix problem ?

The most common reason for this in windows is that your php.ini doesn’t have the mysql line uncommented, so it’s not loading the mysql module (or the module is simply missing entirely):

[[code]]czoxNTI6XCI8c3BhbiBjbGFzcz1cInBsblwiPg0KZXh0ZW5zaW9uPC9zcGFuPjxzcGFuIGNsYXNzPVwicHVuXCI+PTwvc3Bhbj48c3BhbiBje1smKiZdfWxhc3M9XCJwbG5cIj5waHBfbXlzcWw8L3NwYW4+PHNwYW4gY2xhc3M9XCJwdW5cIj4uPC9zcGFuPjxzcGFuIGNsYXNzPVwicGxuXCI+ZGxsDQp7WyYqJl19PC9zcGFuPlwiO3tbJiomXX0=[[/code]]

Restart your webserver after you fix the php.ini file.