Menu Adam R Brown

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