• Resolved smith_j_travis

    (@smith_j_travis)


    Hi guys,

    I’m creating my first plugin, and I’m overriding wp_new_user_notification in it. I’m having an issue, though: whenever I call function_exists() for wp_new_user_notification, it returns true 100% of the time, except when I’m in the admin page.

    When I am in the admin page, it works as expected. When I load up another plugin with a wp_new_user_notification, it returns true, but false otherwise.

    When doing a grep

    grep -rnw ./ -e "function wp_new_user_notification"

    of my wordpress directory, it only returns 2 files: my plugin and pluggable.php, so I’m certain there are no other plugins declaring wp_new_user_notification.

    I can post code if needed, but I’m literally doing

    echo "hmmm: " . function_exists('wp_new_user_notification'); and it returns true as explained above.

    Any help would be appreciated.

    Thanks!

    Travis

Viewing 1 replies (of 1 total)
  • Thread Starter smith_j_travis

    (@smith_j_travis)

    So in my typical fashion, after I posted this I poked around a little more and something seemed funky, so I decided to restart apache and voila, it all started working.

    No idea what happened, but I’m guessing apache/mod_php cached something and was causing issues.

Viewing 1 replies (of 1 total)
  • The topic ‘function_exists('wp_new_user_notification') always returns true’ is closed to new replies.