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_term, wp_insert_site, get_the_terms, register_importer

Top Google Results

User discussions

wpseek mobile