';
printf(__('Woocommerce Appointment and Booking System could not detect an active Woocommerce plugin. Make sure you have activated it. | Hide Notice'), '?phoen_arbpw_nag_ignore=0');
echo "
";
}
}
add_action('admin_init', 'phoen_arbpw_nag_ignore');
function phoen_arbpw_nag_ignore() {
global $current_user;
$user_id = $current_user->ID;
/* If user clicks to ignore the notice, add that to their user meta */
if ( isset($_GET['phoen_arbpw_nag_ignore']) && '0' == $_GET['phoen_arbpw_nag_ignore'] ) {
add_user_meta($user_id, 'phoen_arbpw_ignore_notice', 'true', true);
}
}
}?>