| 415 | /** |
| 416 | * Filters whether to short-circuit the process of adding an option. |
| 417 | * |
| 418 | * Returning a value other than null will short-circuit the process, and the value will be |
| 419 | * returned cast as a bool. |
| 420 | * |
| 421 | * @since 4.7.0 |
| 422 | * |
| 423 | * @param null $skip Whether to short-circuit the process. Default null. |
| 424 | * @param string $option Name of the option to add. |
| 425 | * @param mixed $value Option value. |
| 426 | */ |
| 427 | $skip = apply_filters( 'pre_add_option', null, $option, $value ); |
| 428 | if ( ! is_null( $skip ) ) { |
| 429 | return (bool) $skip; |
| 430 | } |
| 431 | |