WP_Ajax_Response::__construct() public WP 2.1.0
Constructor - Passes args to WP_Ajax_Response::add().
{} Это метод класса: WP_Ajax_Response{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WP_Ajax_Response = new WP_Ajax_Response(); $WP_Ajax_Response->__construct( $args );
- $args(строка/массив)
- Will be passed to add() method.
Заметки
- Смотрите: WP_Ajax_Response::add()
Список изменений
С версии 2.1.0 | Введена. |
Код WP_Ajax_Response::__construct() WP Ajax Response:: construct WP 5.7.1
public function __construct( $args = '' ) {
if ( ! empty( $args ) ) {
$this->add( $args );
}
}