Save a Code Snippet

Save a New Code Snippet

  1. Login in to your MainWP Dashboard
  2. Go to the MainWP > Extensions > Code Snippets > Execute Snippet pageMainWP Code Snippets > Snippet Options
  3. Enter a Snippet Title
  4. Enter a Snippet Description (optional)
  5. Select the snippet type
  6. Select Child Sites where you plan to save the snippet
    NOTE: A snippet cannot be saved on both the selection of sites and a selection of tags. If it is already saved to either sites or tags, and you choose the other selection type, it will be removed from the existing selection.
  7. Add your Code Snippet in the code editorMainWP Code Snippets > Code Editor
  8. Click the Save Snippet button

Edit a Saved Code Snippet

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