phpmailer_init

The WordPress Core phpmailer init hook.

Description

add_action( 'phpmailer_init', (unknown) $class_add_plain_text_alternative ); 

Parameters (1)

0. $class_add_plain_text_alternative (unknown) => __CLASS__ . '::add_plain_text_alternative'
The class add plain text alternative.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'phpmailer_init', $class_add_plain_text_alternative ); 
The following example is for adding a hook callback.
  1. // define the phpmailer_init callback 
  2. function action_phpmailer_init( $class_add_plain_text_alternative ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'phpmailer_init', 'action_phpmailer_init', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'phpmailer_init', 'action_phpmailer_init', 10, 1 ); 

Defined (2)

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

/modules/contact-form/grunion-contact-form.php  
  1. add_action( 'phpmailer_init', __CLASS__ . '::add_plain_text_alternative' ); 
  1. remove_action( 'phpmailer_init', __CLASS__ . '::add_plain_text_alternative' );