User's perspective of a shortcode

The user is anyone who visits the site, including guests and members. They will only see the output generated from the shortcode. These users are not aware of the existence of a shortcode, as the shortcode is not visible on the browser view or the page source. Also, the shortcode output doesn't have any predefined IDs or classes, and hence it’s not possible for these users to track a shortcode from the frontend.

Now you should have a basic idea of how WordPress shortcode is created and used to generate dynamic output. More details on the creation and use of a shortcode will be discussed in upcoming sections.

Get WordPress Development Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.