WP_Block_Parser_Frame::__construct()
Constructor
Will populate object properties from the provided arguments.
Метод класса: WP_Block_Parser_Frame{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Block_Parser_Frame = new WP_Block_Parser_Frame(); $WP_Block_Parser_Frame->__construct( $block, $token_start, $token_length, $prev_offset, $leading_html_start );
- $block(WP_Block_Parser_Block) (обязательный)
- Full or partial block.
- $token_start(int) (обязательный)
- Byte offset into document for start of parse token.
- $token_length(int) (обязательный)
- Byte length of entire parse token string.
- $prev_offset(int)
- Byte offset into document for after parse token ends.
По умолчанию: null - $leading_html_start(int)
- Byte offset into document where leading HTML before token starts.
По умолчанию: null
Список изменений
С версии 5.0.0 | Введена. |
Код WP_Block_Parser_Frame::__construct() WP Block Parser Frame:: construct WP 6.6.2
public function __construct( $block, $token_start, $token_length, $prev_offset = null, $leading_html_start = null ) { $this->block = $block; $this->token_start = $token_start; $this->token_length = $token_length; $this->prev_offset = isset( $prev_offset ) ? $prev_offset : $token_start + $token_length; $this->leading_html_start = $leading_html_start; }