Title: PHP8 Change
Last modified: July 27, 2022

---

# PHP8 Change

 *  [etfb](https://wordpress.org/support/users/etfb/)
 * (@etfb)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php8-change/)
 * This hasn’t been updated in years, so obviously it would be better to find a 
   supported plugin to do the same thing, but if you just want to get it working
   in PHP8, go in to subpage-listing.php and change the last couple of lines to:
 * // doing it this way for compatibility with the Preformatted plugin
    add_filter(‘
   init’, function($a) { add_filter(‘the_content’, ‘txfx_wp_subpage_display’, 9);});
 * That should fix it. create_function isn’t supported in PHP8 (nor should it be…*
   shudder*)

The topic ‘PHP8 Change’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/subpage-listing.svg)
 * [Subpage Listing](https://wordpress.org/plugins/subpage-listing/)
 * [Support Threads](https://wordpress.org/support/plugin/subpage-listing/)
 * [Active Topics](https://wordpress.org/support/plugin/subpage-listing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subpage-listing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subpage-listing/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [etfb](https://wordpress.org/support/users/etfb/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/php8-change/)