wp_rel_callback
wp_rel_callback ( $matches, $rel )
Parameters:- (array) matches Single match.
- (string) rel The rel attribute to add.
Returns:- (string) HTML A element with the added rel attribute.
Defined at: - Introduced in WordPress: 5.3.0
- Deprecated in WordPress: —
Description
Callback to add a rel attribute to HTML A element.Will remove already existing string before adding to prevent invalidating (X)HTML.