- Navigate to WordPress Admin Dashboard → Post Snippets→ All Snippets.

- Once you’re on the All Snippets page, all the snippets will appear on this page.
- Click on the Add New button.

- Now you’re on the Add Snippet page.
Title
- Set the Title of the snippet.
Code Editor
- Write your program snippet in the Code Editor textbox.
Variables
- In the Variable textbox, it stores values in variables and then uses them as a reference.

Shortcode
- Checkmark the Shortcode checkbox to enable the Copy Shortcode button in the Actions section.

Before the Shortcode option Enabled

After the Shortcode option Enabled

PHP Code
- Checkmark the PHP Code checkbox only when you need to write the PHP code in the Code Editor textbox.

Before the Shortcode option Enabled

After the Shortcode option Enabled

WPtexturize
- Checkmark the WPtexturize checkbox.
- Before the shortcut is outputted, it can optionally be formatted with wptexturize to transform quotes into smart quotes, apostrophes, dashes, ellipses, trademark symbols, and multiplication symbols.

Description
- Checkmark the WPtexturize checkbox.

- Set the Status of the snippet in the Actions section.

- You can also duplicate the snippet by clicking on the Duplicate Snippet button.

- Click on the Save button.

- Once the operation is successful, a notification will appear at the top of the page Snippet Added Successfully.
