Display all the WordPress posts on one page

Posted by Webmentor | Updated on | in WordPress, WordPress Snippets.


Are you looking to display all the WordPress posts on one page without using any WordPress plugin, then you are on the right page. In this post, I have shared a simple code snippets which …

How to Switch Post Type in WordPress

Posted by Webmentor | Updated on | in WordPress Functions, WordPress Snippets.


In this tutorial, I am going to share the how to switch post type in WordPress by using the simple code snippets inside your functions.php file. It will save your much time if you have …

How to remove comment metabox in WordPress

Posted by Webmentor | Updated on | in WordPress Snippets.


If you are looking to remove the comment metabox from your WordPress admin, then keep your close attention in this tutorial as I am going to share how to remove comment metabox in WordPress. How …

How To Activate WordPress Plugins via Code

Posted by Webmentor | Updated on | in WordPress Snippets.


How To Activate WordPress Plugins via Code | activate plugin wordpress function | activate plugin wordpress code How To Activate WordPress Plugins via Code Use the below code at the end of your functions.php file …

Force All Scripts into wp_footer() in WordPress

Posted by Webmentor | Updated on | in WordPress Snippets.


Hi Friends, today I am going to share a very useful snippet to improve your websites performance and decrease the page loading time. To decrease the page loading tine, you should also include all your …

How to add Custom WordPress User Roles

Posted by Webmentor | Updated on | in WordPress Snippets.


Are you want to add new custom user role in your WordPress site? If your answer is yes, then this tutorial is for you. In this tutorial, I am going to share how to add …

Require a featured image before you can publish post

Posted by Webmentor | Updated on | in WordPress Snippets.


If you want to add a validation on featured image from the post add/edit screen, then keep your close attention in this tutorial as I am going to share a simple WordPress snippet to require …

How to create Administrator account using WordPress backdoor

Posted by Webmentor | Updated on | in WordPress Security, WordPress Snippets.


If you want to create a WordPress administrator account in your WordPress site using the WordPress backdoor code, then keep your attention in this tutorial as I am going to share how to create administrator …

How to create a backdoor script in WordPress

Posted by Webmentor | Updated on | in WordPress Security, WordPress Snippets.


In this tutorial, I will explain how to create a backdoor script in WordPress with an example. Here is the piece of WordPress code to create a new user using the script with the Administrator …

How to Change the Product Placeholder Image in WooCommerce

Posted by Webmentor | Updated on | in WordPress Snippets.


If you want to change the product placeholder image in WooCommerce, then keep your close attention in this tutorial as I am going to share simple code snippet to change the default product image to …