Blog

Dilip Sakariya
Include php file after post content in WordPress

Wants to add content PHP file to the end of post content? You might look below snipped to do the same. [crayon-5c7022b1b400e637463689/]

Dilip Sakariya
Hide product loop on home page woocommerce using css

With the help of below css, you can hide woocommerce product loop on the home page. [crayon-5c7022b1b4500690938771/]

Dilip Sakariya
Woocommerce change/update user role on product purchase

Below function provides a feature to change the user's role on the purchase of a product in woocommerce. Example function will change the existing 'Subscriber' to

Dilip Sakariya
How to redirect if user has specific role in wordpress

I created one simple function when you require redirect of a specific role (Administrator, Subscriber, Contributor, Author, Editor) in WordPress Place below snipped to your theme's

Dilip Sakariya
How to compare date when its save as data type text in database

MySQL offers a "STR_TO_DATE" function to convert a date string to date [crayon-5c7022b1b4828537453370/] *It is not recommended to insert dates into MySQL as text.