Title: Get attribute from backend
Last modified: January 20, 2022

---

# Get attribute from backend

 *  [thisvo](https://wordpress.org/support/users/thisvo/)
 * (@thisvo)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/get-attribute-from-backend/)
 * Hi, I have set the limitation for the min and max price in the plugin. How can
   get those values (min and max price set in the plugin) in the backend(i.e. function.
   php in theme editor) for some programming needs? Thank you.

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

 *  Plugin Author [Dmytro Holovnia](https://wordpress.org/support/users/dholovnia/)
 * (@dholovnia)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/get-attribute-from-backend/#post-15271927)
 * Hi,
 *     ```
       $BeRocket_minmax_custom_post = BeRocket_minmax_custom_post::getInstance();
       $limitation_ids = $BeRocket_minmax_custom_post->get_custom_posts_frontend();
       foreach($limitation_ids as $limitation_id) {
           $settings_minmax = get_post_meta( $limitation_id, 'br_minmax_limitation', true );
       }
       ```
   
 * Regards,
    Dima
 *  Thread Starter [thisvo](https://wordpress.org/support/users/thisvo/)
 * (@thisvo)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/get-attribute-from-backend/#post-15272878)
 * Thank you so much! It works and helped me a lot. One more question, can I also
   get all the product ids that applying each limitation in a similar way? Thanks
   for your help.
 *  Plugin Author [Dmytro Holovnia](https://wordpress.org/support/users/dholovnia/)
 * (@dholovnia)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/get-attribute-from-backend/#post-15286201)
 * We are checking product in cart and validate them. We are not getting products
   based on the limitations. This one you will need to do yourself.
 * Regards,
    Dima
 *  Thread Starter [thisvo](https://wordpress.org/support/users/thisvo/)
 * (@thisvo)
 * [4 years ago](https://wordpress.org/support/topic/get-attribute-from-backend/#post-15718493)
 * Hi, long time since my last question.
    May I ask: 1: What is the code for me 
   to get the MIN and MAX PRODUCT QUANTITY I set in the limitation instead of MIN
   and MAX PRICE? As I have only asked for min and max price last time. 2. How can
   I change the warning message for not enough product when user submit his order
   in the product. The message I can modify in the plugin seems do not include those
   message.
 * Thanks for you help.
 *  Thread Starter [thisvo](https://wordpress.org/support/users/thisvo/)
 * (@thisvo)
 * [4 years ago](https://wordpress.org/support/topic/get-attribute-from-backend/#post-15718498)
 * I have found the solution for question 2 in this forum. Thanks

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

The topic ‘Get attribute from backend’ is closed to new replies.

 * ![](https://ps.w.org/minmax-quantity-for-woocommerce/assets/icon-256x256.gif?
   rev=2770663)
 * [Min and Max Quantity for WooCommerce](https://wordpress.org/plugins/minmax-quantity-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/minmax-quantity-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/minmax-quantity-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/minmax-quantity-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/minmax-quantity-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/minmax-quantity-for-woocommerce/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [thisvo](https://wordpress.org/support/users/thisvo/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/get-attribute-from-backend/#post-15718498)
 * Status: not resolved