Title: Custom Shortcode parameters
Last modified: March 30, 2021

---

# Custom Shortcode parameters

 *  Resolved [blogvii](https://wordpress.org/support/users/blogvii/)
 * (@blogvii)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-shortcode-parameters/)
 * Hi, I can see some default “Shortcode parameters” : $$post_modified_date$$, $
   $year$$,..
 * I added some custom shortcode parameters, ex:$$total_post$$, $$total_comment$
   $ by modifying plugin.
 * Is there a way to add custom shortcode parameters but not modify the plugin?
 * Best Regrads,

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

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-shortcode-parameters/#post-14256545)
 * Hi [@blogvii](https://wordpress.org/support/users/blogvii/),
 * Thanks for using Shortcoder.
    Yes there are hooks available using which you can
   add wordpress parameters to the list.
 * Please see gist below for an example on how Woocommerce related parameters were
   added to the list.
 * [https://gist.github.com/vaakash/f4891252f698a62bb0dc21d040853e7e](https://gist.github.com/vaakash/f4891252f698a62bb0dc21d040853e7e)
 * So basically you need to hook into two filters.
 *     ```
               add_filter( 'sc_mod_wp_params', '<function to add to the list>' );
               add_filter( 'sc_mod_metadata', '<function to execute the params>' );
       ```
   
 * Thanks,
    Aakash
 *  Thread Starter [blogvii](https://wordpress.org/support/users/blogvii/)
 * (@blogvii)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-shortcode-parameters/#post-14258575)
 * Hi [@vaakash](https://wordpress.org/support/users/vaakash/) ,
 * It’s working perfectly. This save me a lot of time for not modifying plugin every
   update. I hope you provide more hook and filter in the future. This will make
   Shortcoder more powerful !
 * Best Regrads,
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-shortcode-parameters/#post-14258597)
 * Hi [@blogvii](https://wordpress.org/support/users/blogvii/),
 * Cheers ! Yes, these hooks were available earlier but I missed to document them.
   I’ll add these to the doc and introduce new ones where ever possible.
 * Thanks,
    Aakash

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

The topic ‘Custom Shortcode parameters’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [vaakash](https://wordpress.org/support/users/vaakash/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/custom-shortcode-parameters/#post-14258597)
 * Status: resolved