file_send_to_editor_url

The MailPoet Newsletters file send to editor url hook.

Description

apply_filters( 'file_send_to_editor_url', (unknown) $html, (unknown) $esc_url_raw, (unknown) $title ); 

Parameters (3)

0. $html (unknown)
The html.
1. $esc_url_raw (unknown) => esc_url_raw($href)
The esc url raw.
2. $title (unknown)
The title.

Usage

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

Defined (1)

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

/controllers/back/campaigns.php  
  1. $html = apply_filters('file_send_to_editor_url', $html, esc_url_raw($href), $title);