insert_with_markers
insert_with_markers ( $filename, $marker, $insertion )
Parameters:- (string) filename Filename to alter.
- (string) marker The marker to alter.
- (array|string) insertion The new content to insert.
Returns:- (bool) True on write success, false on failure.
Defined at: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Inserts an array of strings into a file (.htaccess), placing it between
BEGIN and END markers.Replaces existing marked info. Retains surrounding
data. Creates file if none exists.