<submit_post><post_id><service_name><connection_data>

This action is documented in modules/publicize/ui.php.

Description

apply_filters( '<submit_post><post_id><service_name><connection_data>' ); 

Usage

To run the hook, copy the example below.
  1. = apply_filters( '{$submit_post}{$post_id}{$service_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 <submit_post><post_id><service_name><connection_data> callback 
  2. function filter_submit_postpost_idservice_nameconnection_data( ) { 
  3. // make filter magic happen here... 
  4. return
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "{$submit_post}{$post_id}{$service_name}{$connection_data}", 'filter_submit_postpost_idservice_nameconnection_data', 10, 0 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "{$submit_post}{$post_id}{$service_name}{$connection_data}", 'filter_submit_postpost_idservice_nameconnection_data', 10, 0 ); 

Defined (1)

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

/modules/publicize/publicize.php  
  1. if ( false == apply_filters( 'wpas_submit_post?', $submit_post, $post_id, $service_name, $connection_data ) ) {