• Resolved stevoli

    (@stevoli)


    Is there any way to limit how many ads a user can post? Ideally I want a user to be able to only post 1 free ad, and if they purchase a paid plan they can post more.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pluginsware

    (@pluginsware)

    Hi,

    Sorry, the feature to limit the number of listings based on the user is not available.

    Thanks

    Thread Starter stevoli

    (@stevoli)

    Any plan to add it in the future? It could be something as simple as:

    $current_user = wp_get_current_user();
    $count = count_user_posts( $current_user->ID, 'acadp_listings' );
    
    if ( $count >= $postlimit) {
        echo "You have reached your post limit.";
    }
    • This reply was modified 4 years, 1 month ago by stevoli.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limit number of listings per user’ is closed to new replies.