Recent Posts

How to create a virtual page in wordpress

Everytime I have a wordpress project, this feature seems always present and I always had to search it in google LOL. So I decided to write a post about it because there's a bunch of code I found and have tested that aren't working on my end which consume my time.

Read more

Woocommerce product is not purchasable

If you encountered this error, probably you’ve added the product programmaticaly. I, until now still wondering why it’s not purchasable whenever the product is added programmaticaly using the wp_insert_post function of wordpress.

Anyway, I solved the issue by making the products purchasable whatever it is, using woocomerce filter.

Read more

Laravel FormRequest Custom Validation Response

Are you building a restAPI and wanted to utilize laravel’s FormRequest validation, however, having a hard time how to customize the response of it? Actually, you’ll be surprised how easy it was, just like me or maybe not LOL!

Anyway, here's how to customize the response of laravel’s FormRequest.

Read more