AP_Activate::delete_options()
Description #
Delete old AnsPress options.
Source #
File: activate.php
public function delete_options() { $settings = get_option( 'anspress_opt', array() ); unset( $settings['user_page_title_questions'] ); unset( $settings['user_page_slug_questions'] ); unset( $settings['user_page_title_answers'] ); unset( $settings['user_page_slug_answers'] ); update_option( 'anspress_opt', $settings ); wp_cache_delete( 'anspress_opt', 'ap' ); wp_cache_delete( 'ap_default_options', 'ap' ); }
Expand full source code Collapse full source code View on GitHub: activate.php:96
Add your comment