[ 'id' => $form['id'], 'title' => $form['title'], ], $forms ); $selected_form_id = intval( rgget( 'bld_embed_form_id' ) ); // APC has an unsafe get_current_screen() usage during admin-ajax requests. // Disable GF AJAX in this widget when APC is active to avoid admin-ajax.php submissions. $disable_ajax = class_exists( 'GF_Advanced_Post_Creation' ) || defined( 'GF_ADVANCEDPOSTCREATION_VERSION' ); $ajax = ! $disable_ajax; ?>
Submitted. View entry #%d.', esc_url( $entry_url ), $entry_id ); // Or, if you prefer a redirect back to the Dashboard with context: // return [ 'redirect' => add_query_arg( [ 'bld_embed_form_id' => $form_id, 'bld_entry' => $entry_id ], admin_url( 'index.php' ) ) ]; } return $confirmation; }, 10, 4 );