comment_moderation_text
Filter HookDescription
Filters the comment moderation email text.Hook Information
File Location |
wp-includes/pluggable.php
View on GitHub
|
Hook Type | Filter |
Line Number | 2057 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$notify_message
|
Text of the comment moderation email. |
int
|
$comment_id
|
Comment ID. |
Usage Examples
Basic Usage
<?php
// Hook into comment_moderation_text
add_filter('comment_moderation_text', 'my_custom_filter', 10, 2);
function my_custom_filter($notify_message, $comment_id) {
// Your custom filtering logic here
return $notify_message;
}
Source Code Context
wp-includes/pluggable.php:2057
- How this hook is used in WordPress core
<?php
2052 * @since 1.5.2
2053 *
2054 * @param string $notify_message Text of the comment moderation email.
2055 * @param int $comment_id Comment ID.
2056 */
2057 $notify_message = apply_filters( 'comment_moderation_text', $notify_message, $comment_id );
2058
2059 /**
2060 * Filters the comment moderation email subject.
2061 *
2062 * @since 1.5.2
PHP Documentation
<?php
/**
* Filters the comment moderation email text.
*
* @since 1.5.2
*
* @param string $notify_message Text of the comment moderation email.
* @param int $comment_id Comment ID.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/pluggable.php
Related Hooks
Related hooks will be displayed here in future updates.