Support » Developing with WordPress » Exposing Customizer objects in WordPress REST API

  • petefuseloft


    I’ve been building a javascript front-end, using wordpress as the CMS. The REST API is great for posts, pages, custom post types, etc, but I’m unable to figure out how to access the “Customizer” data.

    For instance, the favicon, and a field I’ve added for “Site Logo” in the customizer, which I’d like to expose to the front-end via a /wp-json endpoint.

    Does anyone know if this is possible?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz


    As you may know, theme specific customizer data is stored in the options table as a serialized array. The option key is “theme_mods_{$theme_name}”

    The API provides access to only limited option values through the settings object. To get other option data, AFAIK you would need to create your own API route/endpoint to fetch customizer data.



    @bcworkz I thought this might be the case. Thanks for confirming!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.