| | 500 | /** |
| | 501 | * Filters a specific option before its value is deleted. |
| | 502 | * |
| | 503 | * The dynamic portion of the hook name, `$option`, refers to the option name. |
| | 504 | * |
| | 505 | * Returning a value other than null will effectively short-circuit the delete process. |
| | 506 | * |
| | 507 | * @since 4.7.0 |
| | 508 | * |
| | 509 | * @param null $skip Whether to short-circuit the process. |
| | 510 | * @param string $option Option name. |
| | 511 | */ |
| | 512 | $skip = apply_filters( "pre_delete_option_{$option}", null, $option ); |
| | 513 | |
| | 514 | /** |
| | 515 | * Filters an option before its value is deleted. |
| | 516 | * |
| | 517 | * Returning a value other than null will effectively short-circuit the delete process. |
| | 518 | * |
| | 519 | * @since 4.7.0 |
| | 520 | * |
| | 521 | * @param null $skip Whether to short-circuit the process. |
| | 522 | * @param string $option Name of the option. |
| | 523 | */ |
| | 524 | $skip = apply_filters( 'pre_delete_option', $skip, $option ); |
| | 525 | |
| | 526 | if ( null !== $skip ) { |
| | 527 | return (bool) $skip; |
| | 528 | } |
| | 529 | |