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