* @link https://github.com/jrfnl/Debug-Bar-Shortcodes * @since 1.0 * * @copyright 2013-2016 Juliette Reinders Folmer * @license http://creativecommons.org/licenses/GPL/2.0/ GNU General Public License, version 2 or higher */ if ( ! function_exists( 'debug_bar_shortcodes_is_closure' ) ) { /** * Check if a callback is a closure. * * @param mixed $arg Function name. * * @return bool */ function debug_bar_shortcodes_is_closure( $arg ) { $test = function() { }; $is_closure = ( $arg instanceof $test ); return $is_closure; } }