WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 2595 | $comment = compact('comment_ID', 'comment_content', 'comment_approved', 'comment_date', 'comment_date_gmt', 'comment_author', 'comment_author_email', 'comment_author_url'); |
| 2596 | |
| 2597 | $result = wp_update_comment($comment); |
| 2598 | if ( is_wp_error( $result ) ) |
| 2599 | return new IXR_Error(500, $result->get_error_message()); |
| 2600 | |
| 2601 | if ( !$result ) |
| 2602 | return new IXR_Error(500, __('Sorry, the comment could not be edited. Something wrong happened.')); |
| 2603 | |
| 2604 | do_action( 'xmlrpc_call_success_wp_editComment', $comment_ID, $args ); |
| 2605 | |
| 2606 | return true; |
| 2607 | } |
| 2608 | |
| 2609 | /** |
| 2610 | * Create new comment. |
| 2611 | * |
| 2612 | * @since 2.7.0 |
| 2613 | * |