Created
May 30, 2018 12:28
-
-
Save bogdan-mainwp/8a5e9af2e10c768e12cc547d8416889c to your computer and use it in GitHub Desktop.
Custom filter for adding new sites to MainWP Dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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