• Resolved digitalsuspects

    (@digitalsuspects)


    Could you set this as an option in the admin interface? Seems like there is a workaround with some CSS, but I’d prefer a more solid solution.

    Seems like there has been coding done for it in the camptix.php:

    <?php if ( apply_filters( 'camptix_show_remaining_tickets', true ) ) : ?>
    								<th class="tix-column-remaining"><?php _e( 'Remaining', 'camptix' ); ?></th>

    Thanks for the effort and a great job already done!

    https://wordpress.org/plugins/camptix/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ian Dunn

    (@iandunn)

    We like to follow WordPress’s philosophy regarding options:

    Decisions, not Options
    Every time you give a user an option, you are asking them to make a decision. When a user doesn’t care or understand the option this ultimately leads to frustration. As developers we sometimes feel that providing options for everything is a good thing, you can never have too many choices, right? Ultimately these choices end up being technical ones, choices that the average end user has no interest in. It’s our duty as developers to make smart design decisions and avoid putting the weight of technical choices on our end users.

    Adding a filter to a functionality plugin is an easy alternative:

    add_filter( 'camptix_show_remaining_tickets', '__return_false' );

    where in the CampTix plugin should I add that code to make the remaining tickets disappear?

    You’d either stick that in a child theme’s functions.php or, like @ian mentioned, you’d wrap that code in a handy dandy plugin so that if/ when you changed to a different theme, the plugin would still be present.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Don't show (hide) remaining tickets’ is closed to new replies.