Skip to content

Instantly share code, notes, and snippets.

@bogdan-mainwp
Created May 30, 2018 12:28
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogdan-mainwp/8a5e9af2e10c768e12cc547d8416889c to your computer and use it in GitHub Desktop.
Save bogdan-mainwp/8a5e9af2e10c768e12cc547d8416889c to your computer and use it in GitHub Desktop.
Custom filter for adding new sites to MainWP Dashboard
<?php
// Available parameters: url, name, wpadmin, unique_id, groupids, ssl_verify, ssl_version, http_user, http_pass
$params = array(
'url' => 'demosite.com',
'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