Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Custom filter for adding new sites to MainWP Dashboard
// Available parameters: url, name, wpadmin, unique_id, groupids, ssl_verify, ssl_version, http_user, http_pass
$params = array(
'url' => '',
'name' => 'Site Friendly Name',
'wpadmin' => 'adminusername',
'unique_id' => 'unique_id'
$result = apply_filters( 'mainwp_addsite', $params );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.