Title: slb_activate function
Last modified: February 6, 2017

---

# slb_activate function

 *  Resolved [Dm1_](https://wordpress.org/support/users/dm1_/)
 * (@dm1_)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/slb_activate-function/)
 * It’s may be just for me, or it’s really absolutely unclear from the FAQ and example
   what **slb_activate** function exactly does.
 * Looks like it enables lightbox for images with links passed as a function parameter?
   
   Or it will add links automatically to all img tags found in passed parameter 
   to enable lightbox on them? Or it enables a lightbox for any link found in passed
   parameter if they are targeting an attachment? Or maybe link target doesn’t matter?
   Can it use a hidden html as lightbox content or it’s limited only to images?
    -  This topic was modified 9 years, 1 month ago by [Dm1_](https://wordpress.org/support/users/dm1_/).

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

 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/slb_activate-function/#post-8758270)
 * Hi, [SLB’s documentation on link activation](https://github.com/archetyped/simple-lightbox/wiki/Activation)
   should answer all of your questions, but please let me know if anything is unclear
   after checking that out.
 * Thanks.
 *  Thread Starter [Dm1_](https://wordpress.org/support/users/dm1_/)
 * (@dm1_)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/slb_activate-function/#post-8776303)
 * Thanks for help. Although the GitHub page contains a little bit more information
   about links, it says nothing about supported link targets.
 * For example:
    `$content (string) Content containing links to be activated`
 * I think the true meaning of the word “activated” in this case is known only to
   you 🙂
    As far as I can guess this function works exactly as plugin itself and
   nothing more.
 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/slb_activate-function/#post-8782628)
 * > As far as I can guess this function works exactly as plugin itself and nothing
   > more.
 * That’s it exactly! As noted in the documentation page linked to above, _“SLB 
   automatically activates links in recognized content areas”_, so `slb_activate()`
   is used to activate links in other blocks of content exactly like post/page content
   and widget areas are.
 * The `target` attribute is not specifically mentioned on that page because it 
   is not necessary for SLB’s functionality.

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

The topic ‘slb_activate function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-lightbox.svg)
 * [Simple Lightbox](https://wordpress.org/plugins/simple-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-lightbox/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Archetyped](https://wordpress.org/support/users/archetyped/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/slb_activate-function/#post-8782628)
 * Status: resolved