| @@ 607-610 (lines=4) @@ | ||
| 604 | foreach ( $services as $name => $connections ) { |
|
| 605 | foreach ( $connections as $connection ) { |
|
| 606 | $connection_data = ''; |
|
| 607 | if ( method_exists( $connection, 'get_meta' ) ) |
|
| 608 | $connection_data = $connection->get_meta( 'connection_data' ); |
|
| 609 | elseif ( ! empty( $connection['connection_data'] ) ) |
|
| 610 | $connection_data = $connection['connection_data']; |
|
| 611 | ||
| 612 | /** |
|
| 613 | * Filter whether a post should be publicized to a given service. |
|
| @@ 368-371 (lines=4) @@ | ||
| 365 | foreach ( (array) $this->get_services( 'connected' ) as $service_name => $connections ) { |
|
| 366 | foreach ( $connections as $connection ) { |
|
| 367 | $connection_data = ''; |
|
| 368 | if ( method_exists( $connection, 'get_meta' ) ) |
|
| 369 | $connection_data = $connection->get_meta( 'connection_data' ); |
|
| 370 | elseif ( ! empty( $connection['connection_data'] ) ) |
|
| 371 | $connection_data = $connection['connection_data']; |
|
| 372 | ||
| 373 | /** This action is documented in modules/publicize/ui.php */ |
|
| 374 | if ( false == apply_filters( 'wpas_submit_post?', $submit_post, $post_id, $service_name, $connection_data ) ) { |
|