WP_Ajax_Response::__construct()
Constructor - Passes args to WP_Ajax_Response::add().
Метод класса: WP_Ajax_Response{}
Хуков нет.
Возвращает
null
. Ничего (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 6.6.2
public function __construct( $args = '' ) { if ( ! empty( $args ) ) { $this->add( $args ); } }