WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] add_action anonymous callback function (2 posts)

  1. Frumph
    Member
    Posted 1 year ago #

    $output = 'freak';
    if (!empty($output)) add_action('wp_head', function() { echo $output; });

    The anonymous callback function with the add_action makes my site die, erm white screen death.

    Anyone familiar with this functionality know what the problem would be?

    http://codex.wordpress.org/Function_Reference/add_action

  2. Frumph
    Member
    Posted 1 year ago #

    apparently this is a PHP 5.3 only thing, and is now removed from the codex

    nothing to see here, move along ;/

Topic Closed

This topic has been closed to new replies.

About this Topic