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:

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.

Related Functions

extract_from_markers, wp_insert_site, wp_insert_term, convert_chars, get_importers

Top Google Results

User discussions

wpseek mobile