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 |
---|---|
2924 | $comment = compact('comment_ID', 'comment_content', 'comment_approved', 'comment_date', 'comment_date_gmt', 'comment_author', 'comment_author_email', 'comment_author_url'); |
2925 |
|
2926 | $result = wp_update_comment($comment); |
2927 | if ( is_wp_error( $result ) ) |
2928 | return new IXR_Error(500, $result->get_error_message()); |
2929 |
|
2930 | if ( !$result ) |
2931 | return new IXR_Error(500, __('Sorry, the comment could not be edited. Something wrong happened.')); |
2932 |
|
2933 | do_action( 'xmlrpc_call_success_wp_editComment', $comment_ID, $args ); |
2934 |
|
2935 | return true; |
2936 | } |
2937 |
|
2938 | /** |
2939 | * Create new comment. |
2940 | * |
2941 | * @since 2.7.0 |
2942 | * |