gravityforms_salesforce_notify_on_error_message

The Gravity Forms Salesforce Add-On gravityforms salesforce notify on error message hook.

Description

apply_filters( 'gravityforms_salesforce_notify_on_error_message', (string) $h3_error_heading_h3_wpautop____there_was_an_error_when_attempting_to_add_sentry_s_from_the_form_s_gravity_forms_salesforce, (unknown) $errors, (unknown) $entry, (unknown) $form ); 

Parameters (4)

0. $h3_error_heading_h3_wpautop____there_was_an_error_when_attempting_to_add_sentry_s_from_the_form_s_gravity_forms_salesforce (string) => '

'.$error_heading.'

'.wpautop(__("There was an error when attempting to add %sEntry #%s from the form \"%s\"", 'gravity-forms-salesforce'))
The h3 error heading h3 wpautop there was an error when attempting to add sentry s from the form s gravity forms salesforce.
1. $errors (unknown)
The errors.
2. $entry (unknown)
The entry.
3. $form (unknown)
The form.

Usage

To run the hook, copy the example below.
  1. $h3_error_heading_h3_wpautop____there_was_an_error_when_attempting_to_add_sentry_s_from_the_form_s_gravity_forms_salesforce = apply_filters( 'gravityforms_salesforce_notify_on_error_message', $h3_error_heading_h3_wpautop____there_was_an_error_when_attempting_to_add_sentry_s_from_the_form_s_gravity_forms_salesforce, $errors, $entry, $form ); 
  2.  
  3. if ( !empty( $h3_error_heading_h3_wpautop____there_was_an_error_when_attempting_to_add_sentry_s_from_the_form_s_gravity_forms_salesforce ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gravityforms_salesforce_notify_on_error_message callback 
  2. function filter_gravityforms_salesforce_notify_on_error_message( $h3_error_heading_h3_wpautop____there_was_an_error_when_attempting_to_add_sentry_s_from_the_form_s_gravity_forms_salesforce, $errors, $entry, $form ) { 
  3. // make filter magic happen here... 
  4. return $h3_error_heading_h3_wpautop____there_was_an_error_when_attempting_to_add_sentry_s_from_the_form_s_gravity_forms_salesforce
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gravityforms_salesforce_notify_on_error_message', 'filter_gravityforms_salesforce_notify_on_error_message', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gravityforms_salesforce_notify_on_error_message', 'filter_gravityforms_salesforce_notify_on_error_message', 10, 4 ); 

Defined (1)

The filter is defined in the following location(s).

/inc/salesforce-api.php  
  1. $message = sprintf(apply_filters('gravityforms_salesforce_notify_on_error_message', '<h3>'.$error_heading.'</h3>'.wpautop(__("There was an error when attempting to add %sEntry #%s from the form \"%s\"", 'gravity-forms-salesforce')), $errors, $entry, $form), '<a href="'.admin_url('admin.php?page=gf_entries&view=entry&id='.$entry['form_id'].'&lid='.$entry['id']).'">', $entry['id'].'</a>', $form['title']);