Title: Using the plugin in a shrtcode
Last modified: June 2, 2018

---

# Using the plugin in a shrtcode

 *  Resolved [ikivanov](https://wordpress.org/support/users/ikivanov/)
 * (@ikivanov)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/using-the-plugin-in-a-shrtcode/)
 * I have a custom shortcode I coded that echoes <imd>
    How can I connect or pass
   that  thru retina 2x to do its magic? I didn’t see any API or functions I can
   call in the documentation.
 * Thanks in advance.

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

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/using-the-plugin-in-a-shrtcode/#post-10356085)
 * There is a file called api.php, you can call those functions 🙂 But do you really
   need to call the functions? What is your shortcode doing?
 *  Thread Starter [ikivanov](https://wordpress.org/support/users/ikivanov/)
 * (@ikivanov)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/using-the-plugin-in-a-shrtcode/#post-10358475)
 * 
 * Hope I explained it well.
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/using-the-plugin-in-a-shrtcode/#post-10358712)
 * In this case, that will be handled automatically by WP Retina 2x. Your images
   will go through the standard Responsive functions of WordPress in which my plugin
   hooks itself. Check the “new functions”: [https://make.wordpress.org/core/2015/11/10/responsive-images-in-wordpress-4-4/](https://make.wordpress.org/core/2015/11/10/responsive-images-in-wordpress-4-4/).
   If your image generated by your shortcode doesn’t go through those functions,
   there is a problem 🙂
 *  Thread Starter [ikivanov](https://wordpress.org/support/users/ikivanov/)
 * (@ikivanov)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/using-the-plugin-in-a-shrtcode/#post-10364219)
 * Thanks a lot, Jordy.
 * I wasn’t aware of that new feature in WordPress.

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

The topic ‘Using the plugin in a shrtcode’ is closed to new replies.

 * ![](https://ps.w.org/wp-retina-2x/assets/icon-256x256.png?rev=2597316)
 * [Perfect Images: Regenerate Thumbnails, Image Sizes, WebP & AVIF](https://wordpress.org/plugins/wp-retina-2x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-retina-2x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-retina-2x/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-retina-2x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-retina-2x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-retina-2x/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [ikivanov](https://wordpress.org/support/users/ikivanov/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/using-the-plugin-in-a-shrtcode/#post-10364219)
 * Status: resolved