Changeset 54145 for trunk/src/wp-includes/option.php
- Timestamp:
- 09/13/2022 07:27:19 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r54080 r54145 131 131 */ 132 132 $pre = apply_filters( "pre_option_{$option}", false, $option, $default ); 133 134 /** 135 * Filters the value of all existing options before it is retrieved. 136 * 137 * Returning a truthy value from the filter will effectively short-circuit retrieval 138 * and return the passed value instead. 139 * 140 * @since 6.1.0 141 * 142 * @param mixed $pre_option The value to return instead of the option value. This differs 143 * from `$default`, which is used as the fallback value in the event 144 * the option doesn't exist elsewhere in get_option(). 145 * Default false (to skip past the short-circuit). 146 * @param string $option Name of the option. 147 * @param mixed $default The fallback value to return if the option does not exist. 148 * Default false. 149 */ 150 $pre = apply_filters( 'pre_option', $pre, $option, $default ); 133 151 134 152 if ( false !== $pre ) {
Note: See TracChangeset
for help on using the changeset viewer.