Type: php
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
Infinite Scroll ohne paging
function enqueue_infinite_scroll_script() { ?> var pageNum = 2; // The number of the next page to load. Start from the second page. var isLoading = false; // A flag to control whether or not an AJAX request is in progress.…Continue reading
update data 897
// comes from gilroes 2724 if ( ! post_password_required() ) { // Code to fetch and print CFs, such as: $key_1_value_1 = get_post_meta( $post->ID, ‘key_1’, true ); echo $key_1_value_1; } $indextls = $_POST[‘indextls’]; //echo ‘index= ‘.$indextls.’‘; //echo ‘update data 897‘;…Continue reading
home slider html
if (is_front_page()) : ?>Continue reading
display user name in a menu
/** * Show a user’s display name/user name in a WordPress menu. * Once this code is added to your site, you may add {{username}} to the link text. * Follow this guide to add code to your WordPress site…Continue reading