/** * Send the user to a custom page after they have registered. * * @param array[] $fields * @return array[] $fields */ function en_set_custom_redirection_after_registration( $fields ) { if ( ! isset( $_GET[ ‘redirect_to’ ] ) ) { $fields[ ‘redirect_to’…Continue reading
/** * Send the user to a custom page after they have registered. * * @param array[] $fields * @return array[] $fields */ function en_set_custom_redirection_after_registration( $fields ) { if ( ! isset( $_GET[ ‘redirect_to’ ] ) ) { $fields[ ‘redirect_to’…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 remove_plugin_filter() { remove_filter( ‘woocommerce_product_is_visible’, ‘MeprRulesCtrl::override_wc_is_visible’, 11, 2); remove_filter( ‘woocommerce_variation_is_visible’, ‘MeprRulesCtrl::override_wc_is_visible’, 11, 4); } add_action( ‘plugins_loaded’, ‘remove_plugin_filter’ );Continue reading
function mepr_custom_checkout_image() { ?>Continue reading
function custom_category_title( $title ) { $title = str_replace( ‘Archieven’, ‘Mijn gewenste titel’, $title ); return $title; } add_filter( ‘archive_title’, ‘custom_category_title’ );Continue reading
CIU Textbook Library Textbook Library Add a New Book Title: Author: Year: Books List ID Title Author Year No books foundContinue reading
CIU Textbook Library High Education Library Add a New Book Title: Author: Year: Books List ID Title Author Year No books foundContinue reading
function mepr_change_role_canceled_subscription( $event ) { $subscription = $event->get_data(); if( 123 != ( int ) $subscription->product_id ) { return; } $user = $subscription->user(); $wp_user = get_user_by( ‘id’, $user->ID ); if( !$wp_user ) { return; } // Remove role $wp_user->remove_role( ‘subscriber’ );…Continue reading
function sbi_img_alt( $img_alt, $post ) { $alt_text = __( ‘Instagram Image’, ‘instagram-feed’ ); return $alt_text; } add_filter( ‘sbi_img_alt’, ‘sbi_img_alt’, 10, 2 );Continue reading