MemberPress: Customize Default WordPress Password Reset Request Email Body
This code snippet customizes the body of the password reset request email sent to users from…
MemebrPress: Send MemberPress Welcome Email Only When Transaction Is Completed
The code snippet will allow the global welcome email to be triggered only following the successful…
Set Default Donation Amount
Set the default donation amount for all campaigns.
WPForms: display a form under the confirmation message with or without user entered field values.
add_action( 'wpforms_frontend_output_success', static function ( $form_data, $fields, $entry_id ) { unset( $_GET['wpforms_return'], $_POST['wpforms']['id'] ); // If…
ACF option field shortcode
function acf_option_field_shortcode( $atts ) { // Definimos los atributos por defecto (solo necesitamos 'field') $atts =…
Roles.php
Create and Assign Customer Roles
Generate a virtual coupon when order is completed.
This snippet will generate a new virtual coupon for a coupon that you've enabled virtual coupon…
Restrict Dashboard Summary Widget
Prevent specific users (by user ID) from seeing the Easy Digital Downloads Sales Summary widget.
Non-required Card State
Makes the cart state a non-required field when present
AffiliateWP Network Stats Shortcode
Adds an [affwp_network_stats] shortcode with type and status attributes to display individual network metrics for JetEngine…
Show login form for logged out users
Shows the [edd_login] form on restricted content for logged out users.
WWPP - Restrict add-to-cart on specific products to a specific wholesale role only
How to use and configure this snippet: 1. Set your exact Role Key: In the snippet,…