Transparent Overlay for Gravity Forms Ajax Spinner

I don’t think the :before selector can be a full screen overlay when the parent is set to fixed, it will only consume the height/width of the parent element. This certainly works (adjusted elements and css classes aside). <style type=”text/css”> .myspinner { position: fixed; z-index: 100002; background:red; top: 50%; left: 50%; transform: translate(-50%, -50%); transform: … Read more

Code working in functions.php but not pluign for gavity forms

Put the add_filter() call in the init function: public function init(){ parent::init(); add_filter(“gform_submit_button”, array($this, “form_submit_button”), 10, 2); add_filter(“gform_confirmation”, array( $this, ‘custom_confirmation’ ), 10, 4 ); } And then add your custom_confirmation() function as a method to the class: class GFSimpleAddOn extends GFAddOn { /* all the other properties and methods */ public function custom_confirmation($confirmation, $form, … Read more

Update another users meta

wp_ajax_nopriv_{$action} can trigger a non-logged in ajax request. add_action( ‘wp_ajax_nopriv_add_foobar’, ‘prefix_ajax_add_foobar’ ); function prefix_ajax_add_foobar() { // Handle request then generate response using WP_Ajax_Response } get_user_by can pull the user’s data via email $user = get_user_by(’email’, ‘[email protected]’) update_user_meta can update the user’s metadata. update_user_meta( $user->ID, $meta_key, $meta_value, $prev_value );