Shortcodes are one of the best things about WordPress. It makes it extremely easy to use.
A shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line. Shortcode = shortcut. https://en.support.wordpress.com/shortcodes/
Let us create a simple form just to show you how easy it is.
- Open your functions.php
- Copy and paste the following code into your functions file.
- Place the shortcode on any WordPress page.
- You can also call a Shortcode with PHP.
[snippet slug=create-shortcode lang=php]