Execute a Code Snippet

Execute a New Code Snippet

  1. Login into 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
  7. Add your Code Snippet in the code editorMainWP Code Snippets > Code Editor
  8. Click the Run Snippet button

Execute a Saved Code Snippet

  1. Login into 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