// AJAX Action: Get the list of notifications for the dropdown add_action('wp_ajax_fetch_user_notifications', 'ajax_fetch_user_notifications_callback'); function ajax_fetch_user_notifications_callback() { check_ajax_referer('notifications_nonce', 'nonce'); global $wpdb; $user_id = get_current_user_id(); $table_name = $wpdb->prefix . 'user_notifications'; $notifications_raw = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $table_name WHERE user_id = %d ORDER BY created_at DESC LIMIT 10", $user_id ) ); $notifications_formatted = []; if ($notifications_raw) { foreach ($notifications_raw as $notification) { $actor = get_user_by('id', $notification->actor_id); $idea = get_post($notification->idea_id); if (!$actor || !$idea) continue; $message = ''; // --- THIS IS THE UPGRADED PART --- switch ($notification->type) { case 'new_park': $message = sprintf( '%s parked your idea: %s', esc_html($actor->display_name), esc_html(get_the_title($idea)) ); break; case 'new_comment': default: $message = sprintf( '%s commented on your idea: %s', esc_html($actor->display_name), esc_html(get_the_title($idea)) ); break; } // --- END UPGRADED PART --- $notifications_formatted[] = [ 'id' => $notification->id, 'message' => $message, 'link' => get_permalink($idea->ID), 'avatar' => get_avatar($actor->ID, 40), 'time_ago' => human_time_diff(strtotime($notification->created_at), current_time('timestamp')) . ' ago', 'is_read' => $notification->is_read, ]; } } $unread_count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(id) FROM $table_name WHERE user_id = %d AND is_read = 0", $user_id)); wp_send_json_success(['notifications' => $notifications_formatted, 'unread_count' => $unread_count]); } Register Nail Art Ideas Zone - Hauserinfo

Register Nail Art Ideas Zone

Welcome to the most fabulous Register Nail Art Ideas Zone on the web!  ?  Get ready to dive into a world of creativity, inspiration, and nail-tastic fun.

Here’s what awaits you:

  • ? Flaunt Your Style: Showcase your killer nail designs and inspire others.
  • ? Trendsetter Central:  Discover the hottest colors, techniques, and styles.
  • ?‍♀️ Connect & Create:  Join a community of passionate nail artists and share your love for all things nails.
  • ? Challenge Yourself: Participate in contests and challenges to show off your skills and win fabulous prizes.

Ready to take your nail game to the next level?  Fill out the form below to join the party! ? [Register Nail Art Ideas Zone]