{"repo":"mainwp/Code-Snippets-Functions","free":true,"listed":false,"github":"https://github.com/mainwp/Code-Snippets-Functions","clone":"git clone https://github.com/mainwp/Code-Snippets-Functions.git","description":"Repository for the MainWP Code Snippets Extension functions.","language":"PHP","stars":107,"topics":["mainwp","mainwp-extension","code-snippets","wordpress"],"license":null,"category":"dashboards-admin","readme_excerpt":"Code Snippets Functions This repository contains \"code snippets\" for use with the MainWP Code Snippets Extension. The Code Snippets Extension is a custom plugin built to allow the MainWP Dashboard to excecute code snippets on a MainWP Child site. How it Works MainWP Code Snippets Extension works by allowing you to run code snippets that would be in your themes functions.php or in the sites wp-config.php file. Code Snippets extension for MainWP is a simple way to add code snippets to your child sites from one centralized location. This tool is recommended for advanced users only. We only recommend utilizing it if you are experienced PHP coder. Code Snippet Types Have a Code Snippet execute a function on the Child site This type of snippets will add the snippet on your child site and it will be executed on site load. This type of snippets will be saved in your child site database and will be executed each time your child site is loaded by the PHP command eval(). You would use this option to make actual changes on your child sites. For example, if you wanted to customize the admin footer across different sites in your network you would use this option. Have a Code Snippet return information from a Child site This type of snippets will just get the info from child sites and display it in the Output Display. This type of snippets will not saved on your child sites. This option queries the child and returns the information to you. An example would be if you wanted to know the publi","default_branch":null,"files":null,"tree":[],"storefront":"/r/mainwp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mainwp/Code-Snippets-Functions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}