views/noticias/wp-content/themes/supermag/acmethemes/admin-notice/class-admin-notice-handler.php
/**

	 * Remove the data set after the theme has been switched to other theme.

	 *

	 * Active callback of after_setup_theme

	 * return void

	 */
Remove the data set after the theme has been switched to other theme.

Active callback of after_setup_theme
return void
Remove the data set after the theme has been switched to other theme . Active callback of after_setup_theme return void
public function remove_review_notice() {
		global $current_user;
		$user_id                  = $current_user->ID;
		$theme_installed_time     = get_option('supermag_theme_installed_time' );
		$ignored_notice           = get_user_meta( $user_id, 'remove_theme_review_notice', true );
		$ignored_notice_partially = get_user_meta( $user_id, 'nag_remove_theme_review_notice_partially', true );
		if ( $theme_installed_time ) {
			delete_option('supermag_theme_installed_time' );
		}
		if ( $ignored_notice ) {
			delete_user_meta( $user_id, 'remove_theme_review_notice' );
		}
		if ( $ignored_notice_partially ) {
			delete_user_meta( $user_id, 'nag_remove_theme_review_notice_partially' );
		}
	}
public function remove_review_notice ( ) { global $ current_user ; $ user_id = $ current_user -> ID ; $ theme_installed_time = get_option ( 'supermag_theme_installed_time' ) ; $ ignored_notice = get_user_meta ( $ user_id , 'remove_theme_review_notice' , true ) ; $ ignored_notice_partially = get_user_meta ( $ user_id , 'nag_remove_theme_review_notice_partially' , true ) ; if ( $ theme_installed_time ) { delete_option ( 'supermag_theme_installed_time' ) ; } if ( $ ignored_notice ) { delete_user_meta ( $ user_id , 'remove_theme_review_notice' ) ; } if ( $ ignored_notice_partially ) { delete_user_meta ( $ user_id , 'nag_remove_theme_review_notice_partially' ) ; } }
Remove the data set after the theme has been switched to other theme.
Remove the data set after the theme has been switched to other theme .
// Delete options data. // Delete permanent notice remove data. // Delete partial notice remove data.