WPDev.one
Core Function
View Source on Trac ↗

balanceTags()

balanceTags( mixed $text, mixed $force = false )

Balances tags if forced to, or if the 'use_balanceTags' option is set to true.

Parameters 1 required

Name / Type Description
$text
string

Text to be balanced.

Required
$force
bool

If true, forces balancing, ignoring the value of the option. Default false.

Return Value

(string)
Balanced text.

Function Information

Since Version
0.71
Source File
wp-includes/formatting.php
Advertisement