insert_with_markers_inline_instructions
Filter HookDescription
Filters the inline instructions inserted before the dynamically generated content.Hook Information
File Location |
wp-admin/includes/misc.php
View on GitHub
|
Hook Type | Filter |
Line Number | 164 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$instructions
|
Array of lines with inline instructions. |
string
|
$marker
|
The marker being inserted. |
Usage Examples
Basic Usage
<?php
// Hook into insert_with_markers_inline_instructions
add_filter('insert_with_markers_inline_instructions', 'my_custom_filter', 10, 2);
function my_custom_filter($instructions, $marker) {
// Your custom filtering logic here
return $instructions;
}
Source Code Context
wp-admin/includes/misc.php:164
- How this hook is used in WordPress core
<?php
159 * @since 5.3.0
160 *
161 * @param string[] $instructions Array of lines with inline instructions.
162 * @param string $marker The marker being inserted.
163 */
164 $instructions = apply_filters( 'insert_with_markers_inline_instructions', $instructions, $marker );
165
166 if ( $switched_locale ) {
167 restore_previous_locale();
168 }
169
PHP Documentation
<?php
/**
* Filters the inline instructions inserted before the dynamically generated content.
*
* @since 5.3.0
*
* @param string[] $instructions Array of lines with inline instructions.
* @param string $marker The marker being inserted.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-admin/includes/misc.php
Related Hooks
Related hooks will be displayed here in future updates.