Table of Contents

Execute a Code Snippet

Execute 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 want to execute the snippet
    NOTE: A snippet cannot be executed on both the selection of Sites and a selection of Tags. If it is already executed 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 & Execute Snippet button

Execute 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 execute
  4. Click the Load buttonMainWP Code Snippets > Load Snippet
  5. Once the Code Snippet loads, click the Save & Execute Snippet button
Still Have a Questions?
Search for additional solutions in the MainWP Community or start your own discussion