wp_prepare_attachment_for_js Wordpress function


Description:

Prepares an attachment post object for JS, where it is expected
to be JSON-encoded and fit into an Attachment model.


Syntax:


Arguments:

(mixed) $attachment Attachment ID or object.


Return Type:

(array) Array of attachment details.


Define At:

wp-includes/media.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_prepare_attachment_for_js


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×