wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
wp_pre_execute_ability › Hooks de Filtros WordPress
Desde7.1.0
Obsoleton/a
› apply_filters( 'wp_pre_execute_ability', $pre_execute_sentinel, $this->name, $input, $this )
| Parâmetros: (4) |
|
| Definido em: | |
| Codex: |
Filters whether to short-circuit ability execution.
Returning a value other than the received default bypasses the rest of `execute()` — input preparation, permission checks, the registered execute callback, output validation, and the surrounding actions — and the value is returned to the caller as-is. Useful for cached responses, rate limiting, maintenance mode, and test mocking. To continue with normal execution, return `$pre` unchanged. This preserves any value (including `null`, `false`, or arbitrary objects) as a valid short-circuit result. Because validation is bypassed, callers that short-circuit are responsible for the integrity of any value they consume from `$input`.Funções relacionadas: wp_register_ability, wp_get_ability, wp_unregister_ability, wp_get_abilities, wp_has_ability, wp_parse_slug_list