All Snippets

Estimated reading: 2 minutes 137 views
  • Navigate to WordPress Admin Dashboard → Post Snippets→ All Snippets.
wp 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Share this Doc

All Snippets

Or copy link

CONTENTS
Scroll to Top