WPCF7_HTMLFormatter::call_user_func
Calls the callback given by the first parameter. The buffered output will be appended to the output property.
Метод класса: WPCF7_HTMLFormatter{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WPCF7_HTMLFormatter = new WPCF7_HTMLFormatter(); $WPCF7_HTMLFormatter->call_user_func( $callback, ...$args );
- $callback(обязательный)
- .
- ...$args(обязательный)
- .
Код WPCF7_HTMLFormatter::call_user_func() WPCF7 HTMLFormatter::call user func CF7 6.1.7
public function call_user_func( $callback, ...$args ) {
ob_start();
$result = call_user_func( $callback, ...$args );
$output = ob_get_clean();
if ( false !== $output ) {
$this->append_preformatted( "\n" . $output . "\n" );
}
return $result;
}