Save a Code Snippet

Execute a New Code Snippet

  1. Login into your MainWP Dashboard
  2. Go to the MainWP > Extensions > Code Snippets pageSnippet Data
  3. Enter a Snippet Title
  4. Enter a Snippet Description (optional)
  5. Select the type of the snippet
  6. Select Child Sites where you plan to execute the snippet
  7. Add your Code Snippet in the code editorCode Editor
  8. Click the Save Snippet button

Edit a Saved Code Snippet

  1. Login into your MainWP Dashboard
  2. Go to the MainWP > Extensions > Code Snippets page
  3. Locate the Saved Code Snippets table
  4. Locate the Code Snippet that you want to edit
  5. Click the Load actionLoad a Code Snippet
  6. Once the Code Snippet loads, edit wanted details
  7. Click the Save Snippet button