Skip to content

9-sec

Programming, Php, JS, Wordpress Tips, Plugins, and Thoughts

  • Home
Posted in PHP, Woocommerce, Wordpress Plugin, Wordpress Tips

Disable WP comments but leave Woocommerce product review opened

  • tck30
  • posted on 13 October, 202313 October, 2023
  • No Comment
Nowadays, the main purpose of WordPress is not merely for blogging anymore. In fact, blogging is not trendy since the rise of social media emerged. People use WordPress mainly for business CMS
Read More
Posted in PHP, Wordpress Plugin, Wordpress Tips

Change WordPress Plugin loading priority

  • tck30
  • posted on 5 October, 2023
  • No Comment
If you developing a plugin that have dependency of other plugin, the sequence of your plugin loading sometime might be crucial. For example, you want the object/data loaded first in your dependent
Read More
Posted in Woocommerce, Wordpress Plugin, Wordpress Tips

Woocommerce: Disable Payment Gateway Based On Country

  • tck30
  • posted on 3 October, 2023
  • No Comment
If you web store is doing business in multiple countries, some payment gateway might not available in certain countries. Thus, for better checkout experience, remove the unavailable payment gateway
Read More
Posted in Wordpress Tips

Send notification when user role is changed

  • tck30
  • posted on 2 October, 20235 October, 2023
  • 2 Comments
I have a client that want to manually verify a newly registered user data. When the user is registered in the website, it automatically assign the user as Pending role. After verification, admin will
Read More
Posted in Woocommerce, Wordpress Tips

Using woocommerce email header and footer in custom email

  • tck30
  • posted on 2 October, 20232 October, 2023
  • No Comment
Let say you want to send your customer a custom email that not triggered by conventional action (Order status change, user password change) , or basically email not listed in this
Read More
Posted in Wordpress Theme

How To Create WordPress Child Theme

  • tck30
  • posted on 4 November, 2020
  • No Comment
It is pretty simple to create a WordPress child theme. Here is how you do it: I will use wordpress default theme `twentynineteen` as example 1.  Create a new folder in the `wp-content/themes`
Read More
Posted in Woocommerce, Wordpress Plugin

Woocommerce: Add prefix or suffix to order number without plugin

  • tck30
  • posted on 30 October, 202030 October, 2020
  • No Comment
Here is an example you can add prefix to the order number, add_filter( 'woocommerce_order_number', 'add_prefix_woocommerce_order_number', 1, 2); function add_prefix_woocommerce_order_number(
Read More
Posted in Woocommerce, Wordpress Plugin

Woocommerce: How make “Processing”, “Completed” orders editable

  • tck30
  • posted on 29 October, 202029 October, 2020
  • No Comment
In WooCommerce, you can only edit the order items if the order is in On Hold or Pending payment status. But there are times when you want to edit the items when the status is under Processing or
Read More
Posted in Wordpress Tips

How to show content/data based on visitor country

  • tck30
  • posted on 26 October, 2020
  • No Comment
Maybe you have specific content/section/data you want show based on visitor location in your WordPress Blog/Site. Here is how you can do it. First write a function to get location data of visitor.
Read More
Posted in Woocommerce, Wordpress Plugin

Woocommerce: How to Set Purchase Amount Limit on Your Cart

  • tck30
  • posted on 24 October, 2020
  • 6 Comments
Normally you won’t limit how much can your customer spend in your store. But somehow, for some reason, there are people want to limit the total amount of purchase in a store. Yes, I have
Read More

Posts pagination

1 2
Copyright © 2025 9-sec
Theme by Smarter Themes
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie settingsACCEPT
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT