Do you have customers or partners that you would like to provide complimentary tickets to using Event Espresso 4? If so using this solution can help as you'll be able to create tickets that appear hidden on the front-end (public area) of your website and are available in your WordPress dashboard for manual registrations.
This is also helpful since you are able to track those ticket quantities separately and you won't need to manually comp a paid ticket through the transactions screen in your WP dashboard.
*It is possible to still have access to these tickets on the front-end by reversing the CSS using a web browser tool and hopefully your attendees/registrants are honest with their registrations. If this does happen then you can cancel their tickets.
Step 1 - Pick a naming convention
You'll want to pick a naming convention that will be used for the beginning of all of the ticket names. Take a look at these examples:
Admin only - Standard Ticket
Admin only - VIP Ticket
In the examples above, the naming convention is Admin only. This solution works by looking for a partial match in a ticket name so its important to pick a naming convention and stick to it for all future tickets that you want to hide from the front-end but make available in the WP dashboard.
Here is the CSS that will handle this:
/* Hide tickets that begin with Admin only from the front-end ticket selector*/
tr.tckt-slctr-tbl-tr[class*="ee-ticket-admin-only"] {display: none;}
Here is a demo of the example above:
http://cl.ly/image/1J3w3l0P2H29 --> http://cl.ly/image/06352X2u081d
Lets take a look at another example. Lets say that you have selected Partners as the naming convention. Your tickets would then look like this:
Partners - Standard Ticket
Partners - VIP Ticket
Here is the CSS that will handle this:
/* Hide tickets that begin with Partners from the front-end ticket selector*/
tr.tckt-slctr-tbl-tr[class*="ee-ticket-partners"] {display: none;}
Step 2 - Create those additional tickets
Login to your WP dashboard and go to an event. Then duplicate or create new tickets and be sure to start the names for them using your preferred naming convention.
Then save changes.
Step 3 - Apply your custom CSS
The CSS can be added to your child theme's stylesheet (CSS file) or via a plugin like Reaktiv CSS Builder or My Custom CSS.
Once in place, you can go to your website and view the front-end of your site and you should see not see those admin only tickets. Return to your WP dashboard and try a manual registration:
WP-admin --> Event Espresso --> Events. Then hover over the name of your event and click on Registrations. Then on the next page click on Add New Registration. Begin registration and you should see all ticket options there.
References:
http://seleniumtestautomationtipsandtricks.blogspot.com/2013/01/find-elements-with-partial-match-on.html
http://eventespresso.com/topic/complimentary-tickets/
https://eventespresso.com/topic/manual-registration-with-personal-license/
https://eventespresso.com/topic/admin-only-tickets/
https://eventespresso.com/topic/manual-registration-3/
https://eventespresso.com/topic/manual-registration-ee4-how-to-and-free-registration/