gpasc_resume_notice_message

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Examples
    1. Customize Resume Message

Description

Filters the resume notice for a draft.

Usage

Apply to all forms.

add_filter( 'gpasc_resume_notice_message', 'my_custom_function' );

Apply to a specific form.

add_filter( 'gpasc_resume_notice_message_FORMID', 'my_custom_function' );

Parameters

  • message string

    The resume notice.

  • form array

    The current form.

  • display_name string

    The display name of the draft.

  • resume_token_data array

    The data for the draft.

Since

This filter is available since Gravity Forms Advanced Save & Continue 1.0-beta-1.

Examples

Customize Resume Message

<?php
/**
 * Gravity Perks // Advanced Save & Continue // Customize Resume Message
 * https://gravitywiz.com/documentation/gravity-forms-advanced-save-continue/
 *
 * Customize the message that appears at the top of the form when resuming a draft.
 */
add_filter( 'gpasc_resume_notice_message', function( $message, $form, $display_name, $draft_data ) {
	$message = sprintf( 'Resuming application from %s', $display_name );
	return $message;
}, 10, 4 );