Title: API for developers
Last modified: October 14, 2025

---

# API for developers

 *  Resolved [Jorge](https://wordpress.org/support/users/ganix33/)
 * (@ganix33)
 * [7 months, 4 weeks ago](https://wordpress.org/support/topic/api-for-developers-2/)
 * Hi!
 * I’m looking for some API to programmatically launch actions and capture events
   in JS. Is there any doc about it?
 * Thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Jorge](https://wordpress.org/support/users/ganix33/)
 * (@ganix33)
 * [7 months, 4 weeks ago](https://wordpress.org/support/topic/api-for-developers-2/#post-18681608)
 * I’d like to bind an action to a button so inline fancybox will be launched on
   click event.
 *  [tillery](https://wordpress.org/support/users/tillery/)
 * (@tillery)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/api-for-developers-2/#post-18684639)
 * Hi [@ganix33](https://wordpress.org/support/users/ganix33/) – To clarify, are
   you just wanting to have it so if a visitor clicks on a button, it will open 
   a modal with your inline content? If so, does this article address your needs?
   
   [https://firelightwp.com/wordpress-lightbox-docs/show-inline-content-in-lightbox/](https://firelightwp.com/wordpress-lightbox-docs/show-inline-content-in-lightbox/)
 * In short, you (1) add a unique ID and the fancybox-hidden CSS class to the container
   that has your inline content, and then (2) link the button to that ID, and add
   a fancybox-inline CSS class to the button so our lightbox will detect it.
 *  [tillery](https://wordpress.org/support/users/tillery/)
 * (@tillery)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/api-for-developers-2/#post-18704459)
 * Just following up to see if this worked? Also, since I think we (hopefully) addressed
   the question, I’m going to mark this resolved. But obviously feel free to follow
   up with more questions if needed.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘API for developers’ is closed to new replies.

 * ![](https://ps.w.org/easy-fancybox/assets/icon-256x256.png?rev=3188201)
 * [Firelight Lightbox](https://wordpress.org/plugins/easy-fancybox/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-fancybox/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-fancybox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-fancybox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-fancybox/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [js](https://wordpress.org/support/topic-tag/js/)

 * 3 replies
 * 2 participants
 * Last reply from: [tillery](https://wordpress.org/support/users/tillery/)
 * Last activity: [7 months, 1 week ago](https://wordpress.org/support/topic/api-for-developers-2/#post-18704459)
 * Status: resolved