Adding Custom Fields to Products in WooCommerce

As you can on the screenshot above we will see how to add custom fields to the product edition page. To do that we will be working on the functions.php file of your theme’s folder only. The right hooks The first step is to hook an action to woocommerce_product_options_general_product_data. The function linked to this hook will be responsible for the new fields display. […]

WordPress Security Checklist

WordPress Security Checklist

Download WordPress security Checklist. With WordPress powering a lot of the modern web, sites created on the platform are increasingly under attack by hackers. While the core WordPress platform is strictly audited for security, it’s easy to make mistakes in your own WordPress installation that could lead to serious vulnerabilities. This is blueprint made by Suresh Kumar Mukhiya, developer of […]

How to change login screen logo in WordPress?

How to change login screen logo in WordPress? is one of the most important question asked by customer when you develop site for them in WordPress. Today I am going to show you how to write simple function in WordPress that you can include in functions.php or can create standalone WordPress plugins to change your home page login screen logo. […]

How to Mark Comments with Very Long URLs as Spam?

Context: How to Mark Comments with Very Long URLs as Spam? If you want to automatically Mark comments with Long URL spam, then follow the tutorials. Solution: Spammers/Crackers/Hackers frequently link to web pages with very long URLs. So, if someone publishes a comment or enters a long URL in the website field, there is a high chance that the comment […]

add support for featured image, post formats, thumbnails in your theme

To add support for featured image, post format, thumbnail, post-thumbnails,background image, custom header, tiny MCE editor, and translation, add the following codes to functions.php file. It is important to note that, these codes add support for different things. This lines add support for feedback links support. Add theme support for Automatic Feed Links The line below adds theme support for […]

Display all the registered users from WordPress blog

If you are wondering how to display all the registered users from WordPress blog, then you are on the correct place. There are different ways you can manipulate wp_user query. There are several ways you can query Users, like by role, by email, orders, custom fields, including or excluding posts, returning arguments etc. Displaying all the users Say you want […]

Most efficient way to add javascript file to Shortcode

Context: Most efficient way to add javascript file to Shortcode , you wondering How? Solution: In order to increase your website performance, most efficient way to incorporate jquery/javascript to your Shortcode, we can create a class, like Your_Shortcode in the codes given below. The main idea is to create a global static variable, and initialize JS file only when, the […]