| @@ 606-609 (lines=4) @@ | ||
| 603 | foreach ( $services as $name => $connections ) { |
|
| 604 | foreach ( $connections as $connection ) { |
|
| 605 | $connection_data = ''; |
|
| 606 | if ( method_exists( $connection, 'get_meta' ) ) |
|
| 607 | $connection_data = $connection->get_meta( 'connection_data' ); |
|
| 608 | elseif ( ! empty( $connection['connection_data'] ) ) |
|
| 609 | $connection_data = $connection['connection_data']; |
|
| 610 | ||
| 611 | /** |
|
| 612 | * Filter whether a post should be publicized to a given service. |
|
| @@ 359-362 (lines=4) @@ | ||
| 356 | foreach ( (array) $this->get_services( 'connected' ) as $service_name => $connections ) { |
|
| 357 | foreach ( $connections as $connection ) { |
|
| 358 | $connection_data = ''; |
|
| 359 | if ( method_exists( $connection, 'get_meta' ) ) |
|
| 360 | $connection_data = $connection->get_meta( 'connection_data' ); |
|
| 361 | elseif ( ! empty( $connection['connection_data'] ) ) |
|
| 362 | $connection_data = $connection['connection_data']; |
|
| 363 | ||
| 364 | /** This action is documented in modules/publicize/ui.php */ |
|
| 365 | if ( false == apply_filters( 'wpas_submit_post?', $submit_post, $post_id, $service_name, $connection_data ) ) { |
|