Blog Revisions

WordPress Technical Tips & Tricks - WP Development

REST API in WordPress

Hello guys, I hope you all are doing well.I am here after a long time with a new post about WordPress. I wanted to share some REST API knowledge with you guys.So let's start, WordPress includes the REST API in WordPress 4.7 in the year of 2016. To enable REST API endpoints we have to register the e...

Create shortcode in WordPress

I am again here with a common topic but very important for beginner and topic is how to create a shortcode in WordPress. So suppose if you want create shortcode that will display some text then below is the code: add_shortcode('shortcode_name','shortcode_function'); function shortcode_functi...

Remove fields from checkout page – WooCommerce

I am here with very common topic how to remove fields from checkout page in WooCommerce :). So, let's move quickly: Suppose we want to remove the first name and last name from the checkout page. function blogrevisions_remove_fields_woocommerce( $fields ) { unset($fields['billing']['bi...

Redirect to checkout page on add to cart in WooCommerce.

I was working on woocommerce project and there was requirement like skip the cart page means redirect to checkoout page on add to cart button. so i thought let me add blog on this also. This is not a big topic but it will help beginner to understand how to use filters of woocommerce. Let's start...

How to use action and filters in WordPress

When anyone begin to learn WordPress there should be confusion of what are action and filters and how to use action and filter. Let start with definition and later we will learn how to use action and filter in WordPress. An Action in WordPress is a hook that is triggered at specific time when...

How to change payment radio button to toggle in WooCommerce

I am again here with new interesting point how to change the payment radio button to toggle in WooCommerce ( Please check below image ) I hope you will find this useful let's start this :) We need to copy payment-method.php file in your child theme or parent theme, let me show the fi...

Show product variation in shop/archive page

If product type is simple we can directly add that product into cart but if the product is variable then it will redirect us to product page without adding that product into cart. So if you want to show product variation in shop/archive page and add that product into cart then this blog is for you....

Create masonry grid layout with css only

Recently i was working on a project & there was a need to create a masonry grid layout so i thought that i can add blog on this also :) So without time wasting we are moving forward, so what you need to do is just below style & HTML strucure: .parent-div{ column-count: 2; tran...

Add product to cart in WooCommerce programatically

I was working on one of my project where i need to add product in cart programmatically so it is not difficult task for WP & WC expert developer but if you are beginner then this post will help you lot. So without time wasting let's start, $product_id = your_product_id; WC()->cart->add_to...

How to add note at end of every post Programatically

Do you want to add specific note like Thank you to read this post or Hope you like this post or any note that you want to add at end of every post? Welcome to How to add note at end of every post programatically post :)Let's do this: Add below code in child theme's functions.php add_filter...