Glossary Term
wp_text_diff()
wp_text_diff() — Displays a human readable HTML representation of the difference between two strings. The Diff is available for getting the changes between versions. The output is HTML, so the primary use is for displaying the changes. If the two strings are equivalent, then an empty string will be returned.
Inputs: $left_string (string): “old” (left) version of string. $right_string (string): “new” (right) version of string. $args (string|array): Associative array of options to pass to WP_Text_Diff_Renderer_Table(). Field $title (string): Titles the diff in a manner compatible with the output. Default empty. Field $title_left (string): Change the HTML to the left of the title. Default empty. Field $title_right (string): Change the HTML to the right of the title. Default empty. Field $show_split_view (bool): True for split view (two columns), false for un-split view (single column). Default true.
Returns string: Empty string if strings are equivalent or HTML with differences.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
