MemberPress: Add Logout Confirmation Popup
function mepr_logout_confirmation() { ?>Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function mepr_logout_confirmation() { ?>Continue reading
function mepr_acount_links_shortcode() { $mepr_options = MeprOptions::fetch(); $account_url = $mepr_options->account_page_url(); $links = ‘ ‘; $links .= ‘ Home ‘; $links .= ‘ Subscriptions ‘; $links .= ‘ Payments ‘; $links .= ‘ Courses ‘; $links .= ‘ Logout ‘; $links .=…Continue reading
function mepr_remove_state_field() { global $post; $mepr_options = MeprOptions::fetch(); $is_product_page = ( false !== ( $prd = MeprProduct::is_product_page( $post ) ) ); if( $mepr_options->global_styles || $is_product_page ) { ?>Continue reading
function mepr_change_membership_urls( $url, $product, $args, $modify_if_https ) { $url_changed = false; switch( $product->ID ) { case ‘123’: //Change 123 to membership id where you can get it from ID column from Membership table $url = MeprUtils::get_permalink( 456 ).$args; //Change 456…Continue reading
function mepr_change_state_dropdown_values ( $states ) { $sfiles = @glob( WP_PLUGIN_DIR . ‘/mepr-i18n/states/[A-Z][A-Z].php’, GLOB_NOSORT ); foreach( $sfiles as $sfile ) { require( $sfile ); } return $states; } add_filter( ‘mepr_states’, ‘mepr_change_state_dropdown_values’ );Continue reading
function auto_click_have_coupon_link() { ?>Continue reading
function mepr_rearrange_payment_methods( $payment_methods, $key ) { //Modify the order of the payment methods below according to your needs. You can also remove non needed payment methods $order = array( “PayPal Standard”, “Stripe”, “Authorize.net Profile”, “Offline Payment”, ); $pm_map = array();…Continue reading
function kill_math_on_login() { remove_all_actions( ‘mepr-forgot-password-form’ ); remove_all_actions( ‘mepr-login-form-before-submit’ ); remove_all_filters( ‘mepr-validate-forgot-password’ ); remove_all_filters( ‘mepr-validate-login’ ); } add_action( ‘plugins_loaded’, ‘kill_math_on_login’ );Continue reading
function mepr_change_uname_or_email_text() { return ‘Custom text’; } add_filter(‘mepr-login-uname-or-email-str’, ‘mepr_change_uname_or_email_text’ );Continue reading
function allow_mc_through( $block, $post, $uri ) { if( isset( $_GET[‘allow_mailchimp’] ) ) { $block = false; } return $block; } add_filter( ‘mepr-pre-run-rule-content’, ‘allow_mc_through’, 11, 3 );Continue reading