Title: php 8.x compatible code
Last modified: August 1, 2023

---

# php 8.x compatible code

 *  [badgerhill](https://wordpress.org/support/users/badgerhill/)
 * (@badgerhill)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-8-x-compatible-code/)
 *     ```wp-block-code
       <?php
       /*
       Plugin Name: BAW Login/Logout menu
       Plugin URI: http://www.boiteaweb.fr/?p=3337
       Description: You can now add a correct login & logout link in your WP menus.
       Author: Juliobox
       Author URI: http://wp-rocket.me
       Version: 1.3.3
       */
   
       define("BAWLLM_VERSION", "1.3.3");
   
       add_action("plugins_loaded", function () {
           $filename = "inc/";
           $filename .= is_admin() ? "backend-" : "frontend-";
           $filename .= defined("DOING_AJAX") && DOING_AJAX ? "" : "no";
           $filename .= "ajax.inc.php";
           if (file_exists(plugin_dir_path(__FILE__) . $filename)) {
               include plugin_dir_path(__FILE__) . $filename;
           }
           $filename = "inc/";
           $filename .= "bothend-";
           $filename .= defined("DOING_AJAX") && DOING_AJAX ? "" : "no";
           $filename .= "ajax.inc.php";
           if (file_exists(plugin_dir_path(__FILE__) . $filename)) {
               include plugin_dir_path(__FILE__) . $filename;
           }
       });
       ```
   

The topic ‘php 8.x compatible code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/baw-login-logout-menu_cfcfdd.svg)
 * [Login Logout Menu](https://wordpress.org/plugins/baw-login-logout-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/baw-login-logout-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/baw-login-logout-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/baw-login-logout-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/baw-login-logout-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/baw-login-logout-menu/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [badgerhill](https://wordpress.org/support/users/badgerhill/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/php-8-x-compatible-code/)
 * Status: not resolved