WordPress.org

Ready to get started?Download WordPress

Forums

Documentation on WP Javascript Objects? (3 posts)

  1. onlypretending
    Member
    Posted 6 months ago #

    I was implementing a media library pop up for one of my themes, and was taken through using the wp object. However, I can't find any real documentation on this. Is there a repository or somewhere I can sit down and dig through all the things I can do with this object?

  2. Christian1012
    Member
    Posted 6 months ago #

    Try wp-includes/class-wp.php

  3. onlypretending
    Member
    Posted 6 months ago #

    I'm not sure this is what I'm looking for. It's a javascript class. Some sample code that I used were:

    wp.media, wp.media.frames, and there's a bunch more I'm seeing when googling tutorials. Just no documentation.

    I can console.log(wp) and see a bunch of things this object includes. Just want a file or, better yet, a codex page for it.

Reply

You must log in to post.

About this Topic