| @@ 364-367 (lines=4) @@ | ||
| 361 | foreach ( (array) $this->get_services( 'connected' ) as $service_name => $connections ) { |
|
| 362 | foreach ( $connections as $connection ) { |
|
| 363 | $connection_data = ''; |
|
| 364 | if ( method_exists( $connection, 'get_meta' ) ) |
|
| 365 | $connection_data = $connection->get_meta( 'connection_data' ); |
|
| 366 | elseif ( ! empty( $connection['connection_data'] ) ) |
|
| 367 | $connection_data = $connection['connection_data']; |
|
| 368 | ||
| 369 | /** This action is documented in modules/publicize/ui.php */ |
|
| 370 | if ( false == apply_filters( 'wpas_submit_post?', $submit_post, $post_id, $service_name, $connection_data ) ) { |
|
| @@ 345-348 (lines=4) @@ | ||
| 342 | foreach ( $services as $name => $connections ) { |
|
| 343 | foreach ( $connections as $connection ) { |
|
| 344 | $connection_data = ''; |
|
| 345 | if ( method_exists( $connection, 'get_meta' ) ) |
|
| 346 | $connection_data = $connection->get_meta( 'connection_data' ); |
|
| 347 | elseif ( ! empty( $connection['connection_data'] ) ) |
|
| 348 | $connection_data = $connection['connection_data']; |
|
| 349 | ||
| 350 | /** |
|
| 351 | * Filter whether a post should be publicized to a given service. |
|