htmledit_pre
Filter HookDescription
Filters the text before it is formatted for the HTML editor.Hook Information
File Location |
wp-includes/deprecated.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3638 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$output
|
The HTML-formatted text. |
Usage Examples
Basic Usage
<?php
// Hook into htmledit_pre
add_filter('htmledit_pre', 'my_custom_filter', 10, 1);
function my_custom_filter($output) {
// Your custom filtering logic here
return $output;
}
Source Code Context
wp-includes/deprecated.php:3638
- How this hook is used in WordPress core
<?php
3633 * @since 2.5.0
3634 * @deprecated 4.3.0
3635 *
3636 * @param string $output The HTML-formatted text.
3637 */
3638 return apply_filters( 'htmledit_pre', $output );
3639 }
3640
3641 /**
3642 * Retrieve permalink from post ID.
3643 *
PHP Documentation
<?php
/**
* Filters the text before it is formatted for the HTML editor.
*
* @since 2.5.0
* @deprecated 4.3.0
*
* @param string $output The HTML-formatted text.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/deprecated.php
Related Hooks
Related hooks will be displayed here in future updates.