- How to Remove the Last Character from a String in PHP
by Prem Tiwari
In this post, I will share the best way to remove the last character from a string in PHP, you can use one of the following methods. All the methods mentioned belows are tried and tested with latest PHP 8.x version. Method 1: Using substr()…
- How to Secure Your WordPress Site in 4 Simple Steps
by Prem Tiwari
With 43% of all websites running on WordPress, prioritizing security should be at the top of your list. Whether you’re managing a personal blog or an enterprise-level site, here’s how you can effectively safeguard it against potential threats: How to Secure Your WordPress Site in…
- WordPress Security Implementation Guideline
by Prem Tiwari
Securing your WordPress site isn’t just an afterthought, it’s a critical part of your digital presence. With WordPress powering more than 43% of websites globally, it’s no wonder that it’s a favorite target for hackers. But the good news? With a solid security plan, you…
- Responsive Facebook Like Box
by Prem Tiwari
It will display a more flexible and responsible Facebook Like Box in your WordPress sidebar widgets. More than that, it also enable to display in your code template. Facebook Like Box is a wordpress social plugin that enables Facebook Page owners to attract and gain…
- How to Remove SKU From WooCommerce Product Detail Page
by Prem Tiwari
To remove the SKU from the product detail page in WooCommerce, you can achieve this using a simple custom code or a dedicated WordPress plugin. Here’s how you can remove the SKU without touching core WooCommerce files and use either a custom snippet or a…
- How to Manually Upgrade Plugins and Themes in WordPress
by Prem Tiwari
Keeping your WordPress plugins and themes up to date is essential for maintaining security, performance, and compatibility. While WordPress offers automatic updates, there are times when you may need to manually upgrade plugins or themes, such as when automatic updates are disabled or when you’re…
- Disable WordPress Updates for Specific User Roles
by Prem Tiwari
Disabling WordPress updates for specific user roles is crucial for maintaining control over your site’s functionality and preventing unwanted changes. To achieve this, you can use custom code snippets added to your theme’s functions.php file or a site-specific plugin. In the example code, only administrators…
- Moderated a WordPress Security at WordCamp Bengaluru 2024
by Prem Tiwari
WordCamp Bengaluru 2024 was a remarkable event, brimming with insightful discussions and innovative ideas. Among the many highlights, I had the privilege of moderating the WordPress Security panel. The panel featured distinguished experts Sanyogg Shelar and Kalpesh Hiran who shared their vast knowledge and practical strategies…
- How to Remove all special characters including white space in PHP
by Prem Tiwari
To remove all special characters, including whitespace and multiple spaces, in PHP, you can use a combination of preg_replace() to remove unwanted characters and trim() to handle leading and trailing spaces. Here’s a step-by-step guide: Step-by-Step Guide Here’s a sample function that demonstrates this: Example…
- Disable Features – All-in-One plugin to disable unnecessary features
by Prem Tiwari
To optimize site performance in WordPress, disabling certain features can be a strategic approach. Additionally, disabling built-in WordPress features such as pingbacks, trackbacks, and the REST API for sites where they’re not needed can further streamline performance. Furthermore, minimizing the use of external scripts and…
- How to hide PHP Warnings and Notices in WordPress
by Prem Tiwari
Hiding PHP warnings and notices in WordPress is not recommended as it can make it difficult to identify and troubleshoot potential issues on your website. Instead of hiding them, it’s better to address the root cause of the warnings and notices. However, if you have…
- Speaking at WordCamp Mumbai on Make Your WordPress Site Hack-Proof
by Prem Tiwari
I’m thrilled to announce that I’ve been given the incredible opportunity to speak at WordCamp Mumbai, and I’m going to address a topic that’s become increasingly important in today’s digital landscape: “Make Your WordPress Site Hack-Proof.” 🔐 WordPress is an incredibly powerful platform, but with…
- How to Increase Maximum Upload File Size in WordPress
by Prem Tiwari
To increase the maximum upload file size in WordPress, you’ll typically need to adjust a few settings. WordPress has default limits on the maximum file size that can be uploaded, both for media files and theme/plugin installations. Here’s how to increase these limits: Edit .htaccess file OR…
- How to Exclude Pages from WordPress Search Results
by Prem Tiwari
Excluding specific pages or posts from WordPress search results can be useful in various scenarios, such as when you have content that you don’t want to appear in search results. To exclude pages from WordPress search results. If you prefer not to use a plugin…
- Benefits of Removing Website URL Field from the Comment Form in WordPress
by Prem Tiwari
Removing the website URL field from the comment form in WordPress can have several benefits, depending on your website’s goals and requirements. Here are some of the advantages: Use the below WordPress plugin to remove the website URL Field from the Comment Form from your…
- How to remove additional information from WooCommerce store
by Prem Tiwari
To remove additional information from WooCommerce, you’ll typically need to customize your WordPress theme or use custom code. WooCommerce provides various hooks and filters that allow you to modify its functionality and remove or hide specific elements. Here’s a general guide on how to remove…
- How to disable admin footer in WordPress
by Prem Tiwari
In this tutorial, you will get to know how to disable the admin footer in WordPress, you can use a code snippet in your theme’s functions.php file or in a custom plugin. Here’s how you can achieve that: Open your theme’s functions.php file (located in…
- Extra Fee on cart for WooCommerce
by Prem Tiwari
A WooCommerce which allow you to add extra fee option with every orders in your WooCommerce store. You can set the extra fee type as “Fixed” and “Percentage” on sub-total of cart. It gives total control to store owners to set up the rules for…
- How to Disable WordPress Admin Bar for All Users
by Prem Tiwari
The WordPress admin bar is a convenient toolbar that provides quick access to various admin functions while browsing your website. While it can be quite helpful for administrators and editors, some website owners might prefer to disable the admin bar for all users. Whether you…
- How to disable file editing in the WordPress dashboard
by Prem Tiwari
Disabling file editing in the WordPress dashboard is a good security practice to prevent unauthorized access to your site’s code. By default, WordPress lets administrators edit the code of their files directly with the code editor. This gives attackers an easy way to alter your…
- How to fix pageok error in WordPress website
by Prem Tiwari
Are you working on hosting a site or transferring a site to your hosting account at Godaddy, and even though everything seems like it’s set up right, all that’s showing up on the page is “pageok” on a blank white screen? How to fix pageok…
- Remove SKU From Product detail page with Woocommerce Remove SKU
by Prem Tiwari
Is there a way for me to hide SKUs in WooCocommerce from the single product template without overriding it? I’m currently overriding the single product meta template and deleting the SKU from being added, but I’d rather do this via a code snippet so I’m…
- How to move WordPress posts from one category to another
by Prem Tiwari
If you want to move all your WordPress posts from one category to another category then this MySQL query can be done without using any WordPress plugins. you can do it with the below simple MySQL query. You can also achieve the same by using…
- Remove Comment URL
by Prem Tiwari
If you want to remove the URL input textbox from your WordPress comment form from your WordPress blog/webiste. if you are not a developer then simply install and activate the Remove Comment URL plugin. This plugin will allow you to remove the URL field from the…
- Disable WordPress Update Notifications
by Prem Tiwari
This plugin will disable WordPress core update notification, plugin update notification and theme update notifications and inline warnings in your admin panel. If you don’t want to recieve the auto-update Email Notifications for you plugin & theme update, then this plugin is for you. It…
- Enable Gzip Compression Using .htaccess
by Prem Tiwari
How to Enable Gzip CompressionEnables gzip-compression will speed up your WordPress website drastically and reduces bandwidth usage as well. If you have developed your website in wordpress CMS and looking for enable gzip compression, then you two option to do this : 1) Using WordPress…
- How to Install AMP in WordPress Website Step by Step
by Prem Tiwari
In this tutorial, I am going to share how to install AMP in WordPress website step by step 2019 with the screenshot which help you to integrate AMP (Accelerated Mobile Pages) your WordPress sites. What is Google AMP? The Accelerated Mobile Pages (AMP) Project is…
- How to install WP-CLI to manage WordPress site
by Prem Tiwari
WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installations and much more, without using a web browser. Currently WordPress CLI is regularly maintain by the group of companies. What is WP-CLI? WP-CLI is a command line interface for WordPress. The project’s goal…
- How to Exclude a Category From WordPress Loops
by Prem Tiwari
In this post, you will learn how to Exclude a Category From WordPress Loops. Use the below code snippets inside your theme’s functions.php file to exclude a category from WordPress loop.
- How to Fix: Image size smaller than recommended size
by Prem Tiwari
Recently, Google AMP issues report appeared in Google Search Console with the message Image size smaller than recommended size. What this warning means and is there a way to fix it? Today I am going to share a very useful post which will help you to fix the image…