wp_prepare_attachment_for_js( mixed $attachment )

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


25 related functions found for: wp_prepare_attachment_for_js

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordsattach, attachment, attachments, javascript, js, media-php, post-typ, post-type, prepar, prepare, wp-includes, wp-prepare
wp-parser-packageMedia, WordPress
wp-parser-source-filewp-includes/media.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • attach
  • attachment
  • attachments
  • javascript
  • js
  • Media
  • media-php
  • post-typ
  • post-type
  • prepar
  • prepare
  • wp-includes
  • wp-includes/media.php
  • wp-prepare
  • media

Top ↑

Description Description


Top ↑

Parameters Parameters

$attachment

(mixed) (Required) Attachment ID or object.


Top ↑

Return Return

(array|void) Array of attachment details.


Top ↑

Source Source

File: wp-includes/media.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.