REMOVE PRODUCT LINKS FROM YOUR SHOPPING CART
add_filter( 'woocommerce_cart_item_permalink', 'custom_remove_cart_product_link', 10 ); function custom_remove_cart_product_link() { return __return_null(); }
Remove Unused JS
/** * We will Dequeue the jQuery UI script as example. * * Hooked to the…
Yandex AD (Header Section)
Yandex AD (Header Section) snippet
Defining SparkPost Mailer Constants
This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…
WP Simple Pay: Google GA4 Payment Conversion Tracking
Execute a script the first and only time a payment confirmation is viewed.
MemberPress: Change Email Subject in Bulk
The code snippet replaces email subject on all emails containing a specified phrase in the current…
Set Default Donation Amount
Set the default donation amount for all campaigns.
Custom Cart Expiration
Sets the cart expiration to a custom value with database sessions. https://easydigitaldownloads.com/docs/edd_use_php_sessions/
Add the_content to storefront template.
Changes the number of downloads displayed in the latest downloads section of the store front template.
Post class update
add_filter( 'body_class', function( $classes ) { $acc_type=tmwp_get_user_role(); if (!$acc_type) $acc_type='anonymous'; return array_merge( $classes, array('acc-type-'.strtolower($acc_type),tmwp_get_page_class()) ); }…
Hiding Your Identity For Amazon SES Mailer Setup
This snippet will enhance privacy and domain restrictions using WP Mail SMTP with Amazon SES mailer.…
MemberPress: Change the Member’s User Role After a Specific Membership Subscription Cancelation
The code automatically changes the member's user role once the subscription is canceled. This will be…
MemberPress: Set the order of payment methods
This code lets you set the order that the payment gateways that appear on the MemberPress…
MemberPress: Adjust Membership Price Based on Membership ID on Checkout Page
This snippet modifies the price of a specific membership (based on the membership ID) in MemberPress.…
php code
php code