ap_add_default_options( array $defaults )
Description #
Add default AnsPress options.
Parameters #
- $defaultsarray (Required) Default options to append.
Source #
File: includes/options.php
function ap_add_default_options( $defaults ) { $old_default = ap_default_options(); // Delete existing cache. wp_cache_delete( 'ap_default_options', 'ap' ); wp_cache_delete( 'anspress_opt', 'ap' ); $new_default = $old_default + (array) $defaults; wp_cache_set( 'ap_default_options', $new_default, 'ap' ); }
Expand full source code Collapse full source code View on GitHub: includes/options.php:169
Add your comment