Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comment_moderation_subject

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
2157
2158                /**
2159                 * Filters the comment moderation email subject.
2160                 *
2161                 * @since 1.5.2
2162                 *
2163                 * @param string $subject    Subject of the comment moderation email.
2164                 * @param int    $comment_id Comment ID.
2165                 */
2166                $subject = apply_filters( 'comment_moderation_subject', $subject, $comment_id );
2167
2168                wp_mail( $email, wp_specialchars_decode( $subject ), $notify_message, $message_headers );
2169
2170                if ( $switched_locale ) {
2171                     restore_previous_locale();
2172                }
2173           }
2174
2175           return true;