Documentation on WP Javascript Objects? (3 posts)

  1. onlypretending
    Posted 1 year 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
    Posted 1 year ago #

    Try wp-includes/class-wp.php

  3. onlypretending
    Posted 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Topic