Title: Bug with $hefo_options?
Last modified: May 17, 2018

---

# Bug with $hefo_options?

 *  Resolved [th3br41n](https://wordpress.org/support/users/th3br41n/)
 * (@th3br41n)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/bug-with-hefo_options/)
 * Please note that `global $hefo_options` does not always guarantee that `$hefo_options`
   is correctly assigned. For examples see this code:
 * === file test.php ===
 *     ```
       <?php
   
       $hefo_options = 'this is a test';
   
       function test1()
       {
           global $hefo_options;
   
           var_export($hefo_options);
       }
   
       function test2()
       {
           test1();
       }
       ```
   
 * === file test1.php ===
 *     ```
       <?php
   
       function init()
       {
           include_once __DIR__ . '/test.php';
       }
   
       init();
       echo 'test1:' . function_exists('test1') . PHP_EOL; //shows 'test1:1'
       echo 'test2:' . function_exists('test2') . PHP_EOL; //shows 'test2:1'
       test1(); //shows null
       test2(); //shows null
       ```
   
 * Actually, sometimes this bug occurs within the function `hefo_wp_head_post` in
   the `plugin.php` file.
    -  This topic was modified 7 years, 11 months ago by [th3br41n](https://wordpress.org/support/users/th3br41n/).

The topic ‘Bug with $hefo_options?’ is closed to new replies.

 * ![](https://ps.w.org/header-footer/assets/icon-256x256.png?rev=3452717)
 * [Head, Footer and Post Injections](https://wordpress.org/plugins/header-footer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [th3br41n](https://wordpress.org/support/users/th3br41n/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/bug-with-hefo_options/)
 * Status: resolved