Learn how to protect your WordPress site or blog using these 10 UGC Content Moderation Plugins For WordPress
[WordPress] How to disable comments on Media attachments
An easier way to disable comments on WordPress Media files. It will help you fight with the spam comments that automated scripts leave on the media files.
[WordPress] How to check if current user is Administrator
Check if the current user is Administrator or no. This snippet helps in displaying special information to Administrators only.
[WooCommerce] Add a product to cart on user’s visit
WooCommerce is very popular WordPress plugin which helps you convert your WordPress blog into an E-Commerce shop. We often do a lot of WordPress plugins and WooCommerce extensions at DigiMantra Labs and a special request from the client was to add a particular product to the cart as soon as
Create new theme file without FTP using WordPress admin
Learn how to Create new theme file from WordPress admin without FTP access. Not only PHP but you can create any kind of file.
WordPress 3.0 Menus – Add a login / logout link
Lear how to Append or prepend login / logout link to the WordPress menus without having to mess the code.
WordPress auto resize images on upload
Learn how to auto resize images on upload in WordPress. Stop using the buggy third party scripts and keep your blog safe.
How to : Create a new WordPress user using PHP function
Learn how to create a new WordPress user with Administrator role from a PHP file. It may be helpful when you have got FTP access to a server and you want to create a new Admin user to access WordPress Admin Dashboard.
How to: Remove /category/ from your WordPress url
Learn how to hack your .htaccess file to remove the unwanted /category/ from your wordpress URL.
How to use Nextgen gallery using custom php code on theme file
Nextgen is pretty famous gallery plugin used in WordPress. It provides shortcode to insert gallery in posts,pages, sidebars etc. In this post, you are going to see how to we can use nextgen’s built in functions to show these galleries, albums in WordPress template files.
How to create Nextgen gallery custom template
Learn how to create custom template to display your album in the Nextgen Gallery.
Show twitter like X days ago in WordPress for time
Show twitter like time in WordPress blog such as “1 hour”, “5 mins”, “2 days”
WordPress : Disable / Remove URL field from the comment area
WordPress allows commenting by default on the blog post or pages you create using WordPress. The comment area constitutes of the Name, Email, URL and Comment. Name and Email fields are mandatory but URL field is options. However, many automated bots try to exploit this feature and post some automated
WordPress : Run shortcode in PHP template file
WordPress shortcode is very useful while creating new posts or pages. It is a nifty way to perform certain tasks in the post. For instance, if you want to add a youtube video or image gallery then WordPress shortcodes are quite useful. Many plugins provide their own shortcodes for displaying
WordPress : Display content to registered users only
During WordPress theme, or plugin development there are times when you want to show certain page’s content based upon the user. For instance, you want to display a download link to only registered users and display a Register link to un-registered or new users. So we are going to discuss