What is the WordPress `is_serialized()` function and what security risk does it address?

WordPress Expert Medium

WordPress Expert — Medium

What is the WordPress `is_serialized()` function and what security risk does it address?

Key points

  • `is_serialized()` checks for PHP-serialized data in strings
  • Unserializing user data can lead to PHP Object Injection attacks
  • WordPress meta functions handle serialization automatically
  • Avoid manually unserializing user-supplied data in WordPress

Ready to go further?

Related questions