How to upload an attachment using the API?

I'm writing a PHP script for uploading images using an API for a plugin (not my own).
I noticed that the uploaded images in this plugin have the following parameters in the database:

content_type = "plugin name"
content_id = "plugin-specific id"

How do I pass these details via the API?

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ