#javascript #WordPress #Snippet #API
I have a "snippet" codejavascript:(()=>{window.open('https://spinka.tepewu.pl/wp-admin/post-new.php?in_reply_to='+encodeURIComponent(window.location.href));})();
which produces a specific type of post "in reply to" with just an URL embedded.
I assume that the code calls some API function and can pass some parameters to it.
Please somebody point me to a resource where I could learn how to create a post with a format of my choice, automatically embedding, say, an original title, header picture, and lead/abstract.
The use case is to aggregate singular posts into our climate infokiosk at #SPINKa
Arkadiusz Wieczorek
in reply to 8Petros [$ rm -rv /capitalism/*] • • •REST API Handbook | Developer.WordPress.org
WordPress Developer Resources8Petros [$ rm -rv /capitalism/*] likes this.
8Petros [$ rm -rv /capitalism/*]
in reply to Arkadiusz Wieczorek • •Taaaa... Ignotum per ignotum i ignotum pogania.
Chyba się uśmiechnę do któregoś z z naszych chakierów...
Arkadiusz Wieczorek
in reply to 8Petros [$ rm -rv /capitalism/*] • • •Posts – REST API Handbook | Developer.WordPress.org
WordPress Developer Resources