Custom WooCommerce Status
This is how to create a custom Woocommerce Status while being able to use the "Mark…
Add extra shipping providers for vendor tracking numbers
$shipping_providers = array( 'Australia' => array( 'Australia Post' => 'https://auspost.com.au/mypost/track/#/details/%1$s', 'FedEx' => 'https://www.fedex.com/apps/fedextrack/?tracknumbers=%1$s&cntry_code=au', 'Fastway Couriers' =>…
Add custom page to the vendor dashboard
// Hook into the navigation add_filter( 'wcv_pro_dashboard_urls', 'add_test_page_nav', 9 ); function add_test_page_nav( $pages ){ $pages[ 'test_page'…
WP Simple Pay: Add Customer Phone to Customer Metadata
Adds the "Telephone" customer field value to the Customer record's metadata. This value is normally only…
WP Simple Pay: Copy Payment Metadata to Customer Metadata
Ensure the Stripe Customer metadata is the same as the Stripe Payment metadata.
WP Simple Pay: Set a Per-Form Custom Amount Programmatically
Adjust a single payment form's custom amount value programatically.
WP Simple Pay: Custom Decimal Separator
Changes the decimal separator from a . (period) to a , (comma).
How To Show Last Modified Date On Blog Post Instead Of Published Date in WordPress
If you want to display the last modified date on your blog post without using a…
WP Simple Pay: Conditionally Dequeue Scripts & Styles
Conditionally dequeue scripts & styles based on set conditions. In this example, we remove all plugin…
WP Simple Pay: Disable Stripe Payment Terms
Disable the automatically generated payment form mandates. NOTE: No recommended. Some payment methods require mandates to…
Completely Disable Comments
add_action('admin_init', function () { // Redirect any user trying to access comments page global $pagenow; if…
WP Simple Pay: Add User Meta After Payment
Use the payment email address to look up a WordPress user and add custom meta information.
sion
sion
Open External link to a new tab
This code snippet enhances a WordPress website by automatically opening external links in new tabs. When…
Add Subscriber to Segment
This snippet helps you add the push subscriber to the segment as per the action defined.