| | 125 | $instructions = sprintf( |
| | 126 | /* translators: 1: marker */ |
| | 127 | __( 'The directives (lines) between `BEGIN %1$s` and `END %1$s` are |
| | 128 | dynamically generated, and should only be modified through WordPress filters. |
| | 129 | Any changes to the directives between these markers will be overwritten.' ), |
| | 130 | $marker |
| | 131 | ); |
| | 132 | |
| | 133 | $instructions = explode( "\n", $instructions ); |
| | 134 | foreach ( $instructions as $line => $text ) { |
| | 135 | $instructions[ $line ] = '# ' . $text; |
| | 136 | } |
| | 137 | |
| | 138 | /** |
| | 139 | * Filters the inline instructions inserted before the dynamically generated content. |
| | 140 | * |
| | 141 | * @since 5.3.0 |
| | 142 | * |
| | 143 | * @param string[] $instructions Array of lines with inline instructions. |
| | 144 | * @param string $marker The marker being inserted. |
| | 145 | */ |
| | 146 | $instructions = apply_filters( 'insert_with_markers_inline_instructions', $instructions, $marker ); |
| | 147 | |
| | 148 | $insertion = array_merge( $instructions, $insertion ); |
| | 149 | |