<true><id><name><connection_data>

Filter whether a post should be publicized to a given service.

Description

apply_filters( '<true><id><name><connection_data>' ); 

Usage

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

Defined (1)

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

/modules/publicize/ui.php  
  1. if ( ! $continue = apply_filters( 'wpas_submit_post?', true, $post->ID, $name, $connection_data ) ) {