---------- Добавлено 15.06.2020 в 17:38 ----------
sparsame: - по ID записи добавляю в БД запись нужного url.
Если вдруг хочется делать именно так (непонятно, зачем), можно через wp-cli еще:
usage: wp post meta add <id> <key> [<value>] [--format=<format>]
or: wp post meta delete <id> [<key>] [<value>] [--all]
or: wp post meta get <id> <key> [--format=<format>]
or: wp post meta list <id> [--keys=<keys>] [--fields=<fields>] [--format=<format>] [--orderby=<fields>] [--order=<order>] [--unserialize]
or: wp post meta patch <action> <id> <key> <key-path>... [<value>] [--format=<format>]
or: wp post meta pluck <id> <key> <key-path>... [--format=<format>]
or: wp post meta update <id> <key> [<value>] [--format=<format>]
например регулярки в PHP быстрее чем в Go
Если что, я не докапываюсь, но это как? Точнее, какие библиотеки сравнивались? Не верю :)
В php видимо PCRE (или PCRE2?), а в go?
eg regular season in PHP faster than Go
If I do not get to the bottom, but it's like? More precisely, what compared libraries? I do not believe :)
In php apparently PCRE (or PCRE2?), And go?
спасибо! пока не получается custom_field, но спасибо за направление.
Смотри, сейчас взял с рабочего постера по xmlrpc, добавил твоё кастом поле:
Формируется так:
---------- Добавлено 15.06.2020 в 17:38 ----------
- по ID записи добавляю в БД запись нужного url.
Если вдруг хочется делать именно так (непонятно, зачем), можно через wp-cli еще:
or: wp post meta delete <id> [<key>] [<value>] [--all]
or: wp post meta get <id> <key> [--format=<format>]
or: wp post meta list <id> [--keys=<keys>] [--fields=<fields>] [--format=<format>] [--orderby=<fields>] [--order=<order>] [--unserialize]
or: wp post meta patch <action> <id> <key> <key-path>... [<value>] [--format=<format>]
or: wp post meta pluck <id> <key> <key-path>... [--format=<format>]
or: wp post meta update <id> <key> [<value>] [--format=<format>]
thank! until it turns custom_field, but thank you for direction.
Look now took from your poster on xmlrpc, add your custom field:
It is formed as follows:
---------- Posted 15.06.2020 at 17:38 ----------
- by ID records are added to the database entry the desired url.
If you suddenly want to do so (not clear why), it is possible through the wp-cli more:
Отправляю такую xml. Пост создается, без ошибок, но поле с изображением остается пустым..
Если thumbnail_external это custom field, то надо слать их массивом. xml же не руками формируешь, надеюсь?
I send this xml. Fasting is created without errors, but the field with the image remains empty ..
If thumbnail_external this custom field, it is necessary to send them to an array. xml not formiruesh hands, I hope?
Вы опять потоковый парсер json пишете?
Их в гугле полно https://github.com/salsify/jsonstreamingparser
Once again you're streaming parser json?
They are fully in Google https://github.com/salsify/jsonstreamingparser
https://console.online.net/en/order/server
https://console.online.net/en/order/server