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
google20ec315e3dcb494d.htmlContinue reading
/* * This will work only for Charitable Recurring Donations 1.4.0.4+ * This accepts the HTML of the text box and with a little fancy replacing, allow you to add attributes. */ add_filter( ‘charitable_recurring_custom_amount_input’, ‘test_charitable_recurring_custom_amount_input’, 10, 4 ); function test_charitable_recurring_custom_amount_input(…Continue reading
/** * Change the payment field value based on user role and early-bird date. * * @param array $properties The field properties. * @param array $field The field settings. * @param array $form_data The form data. * * @return array…Continue reading