WC_Helper_Updater::kses_notice
Strip a notice down to text and a link with a class.
Method of the class: WC_Helper_Updater{}
No Hooks.
Returns
string.
Usage
$result = WC_Helper_Updater::kses_notice( $notice ): string;
- $notice(string) (required)
- The notice HTML.
Changelog
| Since 11.2.0 | Introduced. |
WC_Helper_Updater::kses_notice() WC Helper Updater::kses notice code WC 11.2.2
private static function kses_notice( string $notice ): string {
return wp_kses(
$notice,
array(
'a' => array(
'href' => array(),
'class' => array(),
),
)
);
}