| 500 | /** |
| 501 | * Filters whether to short-circuit the process of removing an option. |
| 502 | * |
| 503 | * Returning a value other than null will short-circuit the process, and the value will be |
| 504 | * returned cast as a bool. |
| 505 | * |
| 506 | * @since 4.7.0 |
| 507 | * |
| 508 | * @param null $skip Whether to short-circuit the process. |
| 509 | * @param string $option Name of the option to remove. |
| 510 | */ |
| 511 | $skip = apply_filters( 'pre_delete_option', null, $option ); |
| 512 | if ( ! is_null( $skip ) ) { |
| 513 | return (bool) $skip; |
| 514 | } |
| 515 | |