public static function_wrapper ( mixed $function_name, $defaults = [], $return_output_buffer = false ) : |
||
$function_name | mixed | or array( $class( string|object ), $function_name ) |
Результат |
public static function function_wrapper($function_name, $defaults = array(), $return_output_buffer = false)
{
return new FunctionWrapper($function_name, $defaults, $return_output_buffer);
}
/** * Add functions to Timber context * * @param array $context Timber context * @return array $context Adapted Timber context */ public function filter_timber_context($context) { Timber\Helper::function_wrapper('get_timber_image_responsive_acf'); return $context; }