Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: xmlrpc_call_success_wp_editComment

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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