acf_update_option()
Deprecated since 5.7.11. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
acf_update_option
A wrapper for the WP update_option but provides logic for a 'no' autoload
No Hooks.
Returns
true|false.
Usage
acf_update_option( $option, $value, $autoload );
- $option(string)
- The option name.
Default:'' - $value(string)
- The option value.
Default:'' - $autoload(string)
- An optional autoload value.
Default:null
Changelog
| Since 5.0.0 | Introduced. |
| Deprecated since | 5.7.11 |
acf_update_option() acf update option code ACF 6.0.4
function acf_update_option( $option = '', $value = '', $autoload = null ) {
// Warning.
_deprecated_function( __FUNCTION__, '5.7.11', 'update_option()' );
// Update.
if ( $autoload === null ) {
$autoload = (bool) acf_get_setting( 'autoload' );
}
return update_option( $option, $value, $autoload );
}