Archives: Snippets
MemberPress: Change Stripe Payment Description
// For non-recurring function mepr_stripe_payment_descriptor( $args ){ $args[ ‘statement_descriptor’ ] = ‘Custom Descriptor’; // max 22 chars return $args; } add_filter( ‘mepr_stripe_payment_intent_args’, ‘mepr_stripe_payment_descriptor’, 10 );Continue reading
MemberPress: Return to Same Page After Signup
function mepr_cust_registration_input( $product_id ) { $post_id = url_to_postid( wp_get_referer() ); if( isset( $post_id ) && $post_id ) { $input_str = ““; echo $input_str; } } add_action( ‘mepr-checkout-before-submit’, ‘mepr_cust_registration_input’ ); function mepr_cust_thankyou_url_params( $url, $args ) { if ( isset( $_REQUEST[ ‘mepr_cust_current_page_id’…Continue reading
MemberPress: MailChimp Feed Unblocker
function mepr_allow_mc_through( $block, $post, $uri ) { if( isset( $_GET[ ‘allow_mailchimp’ ] ) ) { $block = false; } return $block; } add_filter( ‘mepr-pre-run-rule-content’, ‘mepr_allow_mc_through’, 11, 3 );Continue reading
MemberPress: Move PayPal Smart Pay Buttons
//Alternatively, you can use the wp_head hook instead. Wp_footer works best if using ReadyLaunch(tm) function mepr_move_paypal_smart_buttons() { ?>Continue reading
MemberPress: Exclude Posts, Pages, Categories, or Tags from PayWall
//Posts function mepr_cust_pw_exclude_posts_pages( $exclude, $post ) { $exclude[] = 1234; //Change this to the post or page id you want to exclude. $exclude[] = 64; //Change this to the post or page id you want to exclude. $exclude[] = 107;…Continue reading
home slider css
/* Increase the image size in the slider */ .container { width: 100%; max-width: 90%; /* margin: 0 auto; */ } .custom-slider.slick-initialized.slick-slider { position: absolute; width: 111.11%; /* Set width to 100% to make it stretch */ top: -45px; /*…Continue reading
home slider html
if (is_front_page()) : ?>Continue reading
mobile sticky menu chatgpt css
/* Reset some default styles */ body, h1, ul { margin: 0; padding: 0; } /* Hide the container by default for larger screens */ .mobile-bottom-menu-container { display: none; } /* Column styles */ .mobile-bottom-menu-column { flex: 1; text-align: center;…Continue reading
mobile sticky menu chatgpt html
Home Shop Cart AccountContinue reading