ID, 'membership_plan', true); // Example meta key
if ($user_plan === '6-month-plan' || $user_plan === 'annual-plan') {
return false; // Do not show popup
}
}
return true; // Show popup
}
if (should_show_popup()) {
add_action('wp_footer', 'enqueue_popup_scripts');
}
?>
Website Footer Example