/* Customize the generated Gift Card Code */ function agcfw_change_prefix() { return array( ‘characters’ => ‘ABCDEFGHJKMNPQRSTUVWXYZ23456789’, // Defines the characters used in the coupon code ‘length’ => 10, // Sets the length of the generated code to 10 characters ‘prefix’…Continue reading
add_filter( ‘woocommerce_registration_auth_new_customer’, ‘__return_false’ );Continue reading
function line_break_shortcode () { return ‘‘; } add_shortcode( ‘br’, ‘line_break_shortcode’ );Continue reading
add_action( ‘gform_user_updated’, ‘add_additional_roles’, 10, 4 ); function add_additional_roles( $user_id, $feed, $entry, $user_pass ) { if ( rgar( $entry, ‘form_id’ ) != 1 ) { return; } $user = new WP_User( $user_id ); $selected_role_array = explode( ‘|’, rgar( $entry, ’26’ )…Continue reading
add_action( ‘init’, function() { if ( function_exists( ‘aioseo’ ) ) { aioseo()->preUpdates->createCacheTable(); } });Continue reading
define(‘FILEMANAGERURL’, ‘http://full-install-url-of-modernpos/storage/products’);Continue reading
Your Name: Your Email: Meeting Date:Continue reading
add_filter( ‘gform_us_states’, ‘us_states’ ); function us_states( $states ) { $new_states = array(); foreach ( $states as $state ) { $new_states[ GF_Fields::get( ‘address’ )->get_us_state_code( $state ) ] = $state; } return $new_states; }Continue reading
function mepr_fallback_failed_txn( $txn ) { MeprGroupsCtrl::create_fallback( $txn ); } add_action( ‘mepr-txn-status-failed’, ‘mepr_fallback_failed_txn’ );Continue reading
function mepr_delete_expired_txns() { $subscriptions = MeprSubscription::get_all(); if( is_array( $subscriptions ) && !empty( $subscriptions ) ) { foreach( $subscriptions as $subscription ) { $subscription = new MeprSubscription( $subscription->id ); if( $subscription->is_cancelled() && $subscription->is_expired() ) { $subscription->destroy(); } } } } add_action(…Continue reading