Wordpress

Customize Checkout Page in Woocommerce

Hide Billing field on Checkout Page Woocommerce # Hide Shipping field on Checkout Page Woocommerce # Reorder Billing fields on Checkout Page Woocommerce # WooCommerce version 2.6 and below function reorder_wc_billing_fields($fields) { $order = array( “billing_first_name”, “billing_last_name”, “billing_company”, “billing_address_1”, “billing_postcode”, “billing_city”, “billing_email”, “billing_phone” ); foreach($order as $field) { $ordered_fields[$field] = $fields[“billing”][$field]; } $fields[“billing”] = $ordered_fields; …

Customize Checkout Page in Woocommerce Read More »

Set subscriber as author of Blog post in Post Edit mode

Are you looking to select User as a Author of Blog post whose role subscriber or other instead of Admin and without giving any more access of wordpress backend? wp_dropdown_users_args filter help you to set other role (Subscriber, Contributor etc) users as author of blog post without giving them additional backend privileges. add_filter( ‘wp_dropdown_users_args’, ‘bind_subscribers_to_dropdown’, …

Set subscriber as author of Blog post in Post Edit mode Read More »

Modify Post archive Category archive page query by pre_get_posts action

Base on some specific requirement you want to do like display only specific Posts in archive page instead of all with specific ascending or Descending order and for that you need to modify Category archive page or Post archive page query Right. In wordpress with help of pre_get_posts wordpress action hook you can do without …

Modify Post archive Category archive page query by pre_get_posts action Read More »

Add additional custom field to WooCommerce checkout in wordpress

In our today Woocommerce related post you will get one of the most useful ready made script which you should directly used in your website if you want to implement functionality like track Woocommerce Order as Buyer customer from where hear about you and become your customer. Look at below screenshot and you get clear …

Add additional custom field to WooCommerce checkout in wordpress Read More »

Scroll to Top