Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/general-template.php | do_action | 181 | /** * Fires before the specified template part file is loaded. * * The dynamic portion of the hook name, `$slug`, refers to the slug name * for the generic template part. * * @since 3.0.0 * @since 5.5.0 The `$args` parameter was added. * * @param string $slug The slug name for the generic template. * @param string|null $name The name of the specialized template. * @param array $args Additional arguments passed to the template. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string | $slug | The slug name for the generic template. |
string|null | $name | The name of the specialized template. |
array | $args | Additional arguments passed to the template. |