Title: Limit Active User Ad Limit Code Snippet apply only to Free Ads?
Last modified: April 22, 2021

---

# Limit Active User Ad Limit Code Snippet apply only to Free Ads?

 *  [deanliddle](https://wordpress.org/support/users/deanliddle/)
 * (@deanliddle)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/limit-active-user-limit-code-snippet/)
 * Hi,
    When using the code snippet to here ( [https://github.com/simpliko/wpadverts-snippets/tree/0e0d0c44587d924c0b15c2e9ff8fb82697c5cd40/limit-user-active-listings](https://github.com/simpliko/wpadverts-snippets/tree/0e0d0c44587d924c0b15c2e9ff8fb82697c5cd40/limit-user-active-listings))
   to limit active ad’s is it possible to change it to only apply to Free ads and
   still allow registered users to create paid for ads via the WooCommerce plugin?
 * Many Thanks
    Dean
    -  This topic was modified 5 years, 1 month ago by [deanliddle](https://wordpress.org/support/users/deanliddle/).

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

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/limit-active-user-limit-code-snippet/#post-14354802)
 * Hi,
    hmm, i am afraid it is not really possible (or i cannot think of an easy
   way to do that), in the validation, you would need to get selected pricing but
   this information might not always be available in the same place when running
   a validation.
 * After the weekend I will take a look at this snippet and if I will figure out
   a way to do it I will post here.
 *  [antalex94](https://wordpress.org/support/users/antalex94/)
 * (@antalex94)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/limit-active-user-limit-code-snippet/#post-14403674)
 * Hi Greg,
 * I need the same function like Dean. Were you able to configure this?
 * Stephane
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/limit-active-user-limit-code-snippet/#post-14405821)
 * Hi,
    i looked into it briefly, but so far I wasn’t able to figure out a reliable
   way to do it, sorry.

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

The topic ‘Limit Active User Ad Limit Code Snippet apply only to Free Ads?’ is closed
to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/limit-active-user-limit-code-snippet/#post-14405821)
 * Status: not resolved