Skip to content

109 Sandbox

A website made for testing

  • Home
  • All entries
  • Categories
  • Pages
  • Contact

Tag Archives: Recipes

How to get an attachment description in WordPress

wp_prepare_attachment_for_js(get_the_ID())['description']

Can be used to get any of the details of an attachment, not just description.

Documentation: developer.wordpress.org/reference/functions/wp_prepare_attachment_for_js

Posted byDemetris Kikizas5 Dec 20183 Dec 2020Posted inWordPressTags:Development, Recipes, WordPressLeave a comment on How to get an attachment description in WordPress
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Est enim effectrix multarum et magnarum voluptatum. Quodcumque in mentem incideret, et quodcumque tamquam occurreret. Nulla erit controversia. Minime vero istorum quidem, inquit. Duo Reges: constructio interrete. This is the link, which is a bit long...

Categories

  • Android
  • CSS
  • Edge cases
  • JavaScript
  • Linux
  • Lorem
  • Markup
  • Media
  • Miscellaneous
  • Post Formats
  • Recipes
  • Software
  • Templates
  • Testing
  • Web
  • Windows
  • WordPress

Meta

  • Log in
  • Entries feed
  • Comments feed
  • About
  • Activity
  • All entries
  • Blog
  • Categories
  • Classes
  • Contact
  • Front Page
  • Lights
  • Members
  • Ninja Forms
  • Pages
  • Panels
  • Plugins
  • Schedule an Appointment
  • Tests
  • Level 1
  • Lorem Ipsum
  • Page A
  • Page B
109 Sandbox, Proudly powered by WordPress.