| @@ 358-361 (lines=4) @@ | ||
| 355 | foreach ( (array) $this->get_services( 'connected' ) as $service_name => $connections ) { |
|
| 356 | foreach ( $connections as $connection ) { |
|
| 357 | $connection_data = ''; |
|
| 358 | if ( method_exists( $connection, 'get_meta' ) ) |
|
| 359 | $connection_data = $connection->get_meta( 'connection_data' ); |
|
| 360 | elseif ( ! empty( $connection['connection_data'] ) ) |
|
| 361 | $connection_data = $connection['connection_data']; |
|
| 362 | ||
| 363 | /** This action is documented in modules/publicize/ui.php */ |
|
| 364 | if ( false == apply_filters( 'wpas_submit_post?', $submit_post, $post_id, $service_name, $connection_data ) ) { |
|
| @@ 570-573 (lines=4) @@ | ||
| 567 | foreach ( $services as $name => $connections ) { |
|
| 568 | foreach ( $connections as $connection ) { |
|
| 569 | $connection_data = ''; |
|
| 570 | if ( method_exists( $connection, 'get_meta' ) ) |
|
| 571 | $connection_data = $connection->get_meta( 'connection_data' ); |
|
| 572 | elseif ( ! empty( $connection['connection_data'] ) ) |
|
| 573 | $connection_data = $connection['connection_data']; |
|
| 574 | ||
| 575 | /** |
|
| 576 | * Filter whether a post should be publicized to a given service. |
|