Adding Text/Currency To Progress Bar On Campaign Pages

add_filter( ‘charitable_campaign_builder_progress-bar_field_display’, ‘test_campaign_builder_field_display’, 10, 2 ); function test_campaign_builder_field_display( $html, $campaign_data ) { // search for “Goal:” and add a £ symbol to the goal amount. $html = str_replace( ‘Goal: ‘, ‘Goal: £’, $html ); return $html; }Continue reading

theme setup unocss assets

if ( ! function_exists( ‘theme_setup_unocss_assets’ ) ) : function theme_setup_unocss_assets() { wp_enqueue_style( ‘unocss-reset’, ‘https://unpkg.com/@unocss/reset/tailwind.css’, array(), null ); wp_enqueue_script( ‘unocss-preset-uno’, ‘https://unpkg.com/@unocss/runtime/uno.global.js’, array(), null, true ); wp_enqueue_script( ‘unocss-preset-icons’, ‘https://unpkg.com/@unocss/runtime/preset-icons.global.js’, array(), null, true ); wp_add_inline_script( ‘unocss-preset-icons’, ‘window.__unocss = { presets: [ () =>…Continue reading

MemberPress: Set the order of payment methods

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