Automattic\WooCommerce\StoreApi\Routes\V1\Ucp
CatalogSearch::encode_cursor
Encode a pagination offset into an opaque cursor string.
Метод класса: CatalogSearch{}
Хуков нет.
Возвращает
string.
Использование
// private - только в коде основоного (родительского) класса $result = $this->encode_cursor( $offset ): string;
- $offset(int) (обязательный)
- Numeric offset.
Код CatalogSearch::encode_cursor() CatalogSearch::encode cursor WC 11.3.0
private function encode_cursor( int $offset ): string {
return base64_encode( 'offset:' . $offset ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
}