WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1009 | * filter will not fire. A WP_Error response will already be returned. |
| 1010 | * |
| 1011 | * This filter is intended to add additional validation steps by site administrators. |
| 1012 | * |
| 1013 | * @since 6.9.0 |
| 1014 | * |
| 1015 | * @param bool|WP_Error $met_requirements True if the theme meets requirements, WP_Error if not. |
| 1016 | * @param string $stylesheet Directory name for the theme. |
| 1017 | */ |
| 1018 | return apply_filters( 'validate_theme_requirements', true, $stylesheet ); |
| 1019 | } |
| 1020 | |
| 1021 | /** |
| 1022 | * Retrieves all theme modifications. |
| 1023 | * |
| 1024 | * @since 3.1.0 |
| 1025 | * @since 5.9.0 The return value is always an array. |
| 1026 | * |
| 1027 | * @return array Theme modifications. |