#MailHog example page
MailHog is an email testing tool for developers.
It gives the developer the option to intercept and inspect the emails sent by his application.
You can download the MailHog Windows client from one of the links below.
#MailHog example page
MailHog is an email testing tool for developers.
It gives the developer the option to intercept and inspect the emails sent by his application.
You can download the MailHog Windows client from one of the links below.
| <?php | |
| /* | |
| * Virtual Themed Page class | |
| * | |
| * This class implements virtual pages for a plugin. | |
| * | |
| * It is designed to be included then called for each part of the plugin | |
| * that wants virtual pages. | |
| * | |
| * It supports multiple virtual pages and content generation functions. |
| <?php | |
| /** | |
| * Allow to book multiple units/appartments/tickets at same date/dates with single purchase | |
| * You need to add '_capacity' field into the form. This field should be responsible for number of booked items | |
| */ | |
| add_filter( 'jet-booking/form-action/pre-process', function( $result, $booking, $action ) { | |
| $capacity = absint( $action->getRequest( '_capacity' ) ); | |
| if ( ! $capacity && 1 === $capacity ) { |
The point to use a slug (semantic URL) besides of improve the SEO of your articles is to prevent that the user, at the creation of for example an article, it uses special characters that aren't allowed in a URL, appropiate the usage etc. What target usage means, is context dependent.
In this article, you'll learn how to slugify a string in PHP properly, including (or not) support (conversion) for cyrilic and special latin characters.
The following function exposes a simple way to convert text into a valid slug: