Changeset 58993 for trunk/src/wp-includes/option.php
- Timestamp:
- 09/04/2024 09:08:48 PM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r58949 r58993 2002 2002 * @since 4.9.0 The `$default_value` parameter was added. 2003 2003 * 2004 * @param mixed $pre_ optionThe value to return instead of the option value. This differs from2005 * `$default_value`, which is used as the fallback value in the event2006 * the option doesn't exist elsewhere in get_network_option().2007 * Default false (to skip past the short-circuit).2008 * @param string $option Option name.2009 * @param int $network_id ID of the network.2010 * @param mixed $default_value The fallback value to return if the option does not exist.2011 * Default false.2004 * @param mixed $pre_site_option The value to return instead of the option value. This differs from 2005 * `$default_value`, which is used as the fallback value in the event 2006 * the option doesn't exist elsewhere in get_network_option(). 2007 * Default false (to skip past the short-circuit). 2008 * @param string $option Option name. 2009 * @param int $network_id ID of the network. 2010 * @param mixed $default_value The fallback value to return if the option does not exist. 2011 * Default false. 2012 2012 */ 2013 2013 $pre = apply_filters( "pre_site_option_{$option}", false, $option, $network_id, $default_value );
Note: See TracChangeset
for help on using the changeset viewer.