phone_content
Filter HookDescription
Filters the content of the post submitted by email before saving.Hook Information
File Location |
wp-mail.php
View on GitHub
|
Hook Type | Filter |
Line Number | 224 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$content
|
The email content. |
Usage Examples
Basic Usage
<?php
// Hook into phone_content
add_filter('phone_content', 'my_custom_filter', 10, 1);
function my_custom_filter($content) {
// Your custom filtering logic here
return $content;
}
Source Code Context
wp-mail.php:224
- How this hook is used in WordPress core
<?php
219 *
220 * @since 1.2.0
221 *
222 * @param string $content The email content.
223 */
224 $post_content = apply_filters( 'phone_content', $content );
225
226 $post_title = xmlrpc_getposttitle( $content );
227
228 if ( '' === trim( $post_title ) ) {
229 $post_title = $subject;
PHP Documentation
<?php
/**
* Filters the content of the post submitted by email before saving.
*
* @since 1.2.0
*
* @param string $content The email content.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-mail.php
Related Hooks
Related hooks will be displayed here in future updates.