sanitize_option_{$option}

sanitize_option_{$option}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('sanitize_option_{$option}') is found 1 times:

  • /wp-includes/formatting.php line 5126
    	 * @param string $value          The sanitized option value.
    	 * @param string $option         The option name.
    	 * @param string $original_value The original value passed to the function.
    	 */
    	return apply_filters( "sanitize_option_{$option}", $value, $option, $original_value );
    }
    
    /**
     * Maps a function to all non-iterable elements of an array or an object.
     *
     * This is similar to `array_walk_recursive()` but acts upon objects too.