AP_Activate::delete_options()

Description #

Delete old AnsPress options.

Changelog #

VersionDescription
4.1.5Introduced.

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' );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment