Execute a Code Snippet
Execute a New Code Snippet
- Login in to your MainWP Dashboard
- Go to the MainWP > Extensions > Code Snippets > Execute Snippet page
- Enter a Snippet Title
- Enter a Snippet Description (optional)
- Select the snippet type
- Select Child Sites where you want to execute the snippet
- Add your Code Snippet in the code editor
- Click the Run Snippet button
Execute a Saved Code Snippet
- Login in to your MainWP Dashboard
- Go to the MainWP > Extensions > Code Snippets > Saved Snippets page
- Locate the Code Snippet that you want to execute
- Click the Load button
- Once the Code Snippet loads, click the Save & Execute Snippet button
Source Article:
https://kb.mainwp.com/docs/execute-a-code-snippet/