Title: Custom Variables
Last modified: January 12, 2021

---

# Custom Variables

 *  Resolved [shadowq](https://wordpress.org/support/users/shadowq/)
 * (@shadowq)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/custom-variables-9/)
 * Hi there,
    Would love to create a custom variable without having to edit your
   src code (for obvious update reasons). Looking at woosms/src/HookLoad.php:34,
   the $row object includes the correct meta pair already. Simply iterating through
   the array/object and setting all meta pairs would be great, and then continuing
   through the rest of your script to override those with more complex needs.
 * At the moment, I’m using
 *     ```
       $ymd = date_create_from_format('Y-m-d', $row->ywcdd_order_delivery_date);
       $variables->set('delivery_date', date_format($ymd,'l jS F'));
       ```
   
 * But as I said, I’d rather hook in with an action to add it outside of your plugin.
   Any ideas?
 * Thanks!
    Jarrod.
    -  This topic was modified 5 years, 3 months ago by [shadowq](https://wordpress.org/support/users/shadowq/).
    -  This topic was modified 5 years, 3 months ago by [shadowq](https://wordpress.org/support/users/shadowq/).

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

 *  Plugin Author [BulkGate](https://wordpress.org/support/users/woosms/)
 * (@woosms)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/custom-variables-9/#post-13901546)
 * Hello,
 * can you send this request directly to [support@bulkgate.com](https://wordpress.org/support/topic/custom-variables-9/support@bulkgate.com?output_format=md)?
 * We will need some additional info.
 * Thank you very much for the cooperation.
 *  Thread Starter [shadowq](https://wordpress.org/support/users/shadowq/)
 * (@shadowq)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/custom-variables-9/#post-13901765)
 * Thanks! Email sent.

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

The topic ‘Custom Variables’ is closed to new replies.

 * ![](https://ps.w.org/woosms-sms-module-for-woocommerce/assets/icon.svg?rev=2620584)
 * [BulkGate SMS Plugin for WooCommerce](https://wordpress.org/plugins/woosms-sms-module-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woosms-sms-module-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woosms-sms-module-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woosms-sms-module-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woosms-sms-module-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woosms-sms-module-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shadowq](https://wordpress.org/support/users/shadowq/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/custom-variables-9/#post-13901765)
 * Status: resolved