WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
324 | * the option value. |
325 | * |
326 | * @param string $option Name of option to retrieve. Expected to not be SQL-escaped. |
327 | * @return mixed Value set for the option. |
328 | */ |
329 | function get_option( $option, $default = false ) { |
330 | global $wpdb; |
331 |
|
332 | // Allow plugins to short-circuit options. |
333 | $pre = apply_filters( 'pre_option_' . $option, false ); |
334 | if ( false !== $pre ) |
335 | return $pre; |
336 |
|
337 | $option = trim($option); |
338 | if ( empty($option) ) |
339 | return false; |
340 |
|
341 | if ( defined( 'WP_SETUP_CONFIG' ) ) |
342 | return false; |