WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about process_text_diff_html

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-wp-text-diff-renderer-table.php apply_filters 176 /**
* Contextually filters a diffed line.
*
* Filters TextDiff processing of diffed line. By default, diffs are processed with
* htmlspecialchars. Use this filter to remove or change the processing. Passes a context
* indicating if the line is added, deleted or unchanged.
*
* @since 4.1.0
*
* @param string $processed_line The processed diffed line.
* @param string $line The unprocessed diffed line.
* @param string $context The line context. Values are 'added', 'deleted' or 'unchanged'.
*/
wp-includes/class-wp-text-diff-renderer-table.php apply_filters 202 /**
* @ignore
*
* @param array $lines
* @param bool $encode
* @return string
*/
wp-includes/class-wp-text-diff-renderer-table.php apply_filters 227 /**
* @ignore
*
* @param array $lines
* @param bool $encode
* @return string
*/

Hook Parameters

Parameter Type Name Description
string $processed_line The processed diffed line.
string $line The unprocessed diffed line.
string $context The line context. Values are 'added', 'deleted' or 'unchanged'.
string $processed_line The processed diffed line.
string $line The unprocessed diffed line.
string $context The line context. Values are 'added', 'deleted' or 'unchanged'.
string $processed_line The processed diffed line.
string $line The unprocessed diffed line.
string $context The line context. Values are 'added', 'deleted' or 'unchanged'.