This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Module::str_replace_first_only( string $search, string $replace, string $subject )

Replace only first occurrence.


Parameters

$search

(Required) The search string.

$replace

(Required) The replace string.

$subject

(Required) The target for the function.


Return

(string)


Source

File: includes/modules/performance/module.php