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 | |
// Add the following code snippet to the functions.php file of the MainWP Customisations plugin | |
// Download MainWP Customisations here: https://github.com/mainwp/mainwp-customisations | |
// More about the plugin: https://mainwp.com/mainwp-customisations/ | |
// WP Version example | |
add_filter( 'mainwp-sitestable-getcolumns', 'mycustom_sites_table_column', 10 ); | |
add_filter( 'mainwp-sitestable-item', 'mycustom_sitestable_item', 10 ); |
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 | |
// Add the following code snippet to the PHP section of the MainWP Custom Dashboard Extension, | |
// or the functions.php file of the active theme on your Dashboard site. | |
add_filter( 'mainwp_updatescheck_disable_sendmail', 'mycustom_mainwp_updatescheck_disable_sendmail', 10, 1 ); | |
function mycustom_mainwp_updatescheck_disable_sendmail( $input ) { | |
return true; | |
} |
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 | |
// Add the following code snippet to the PHP section of the MainWP Custom Dashboard Extension | |
add_filter( 'mainwp_client_reports_newline_break', 'mycustom_client_reports_newline_break', 10, 1 ); | |
function mycustom_client_reports_newline_break( $value ){ | |
return false; | |
} |
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 | |
// Add the following code snippet to the functions.php file of the MainWP Customisations plugin | |
// Download MainWP Customisations here: https://github.com/mainwp/mainwp-customisations | |
// More about the plugin: https://mainwp.com/mainwp-customisations/ | |
add_filter( 'mainwp_client_report_pdf_page_format', 'mycustom_pdf_page_format', 10 , 1 ); | |
function mycustom_pdf_page_format( $format = '' ) { | |
return 'A4'; | |
} |
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 | |
// Add the following code snippet to the functions.php file of the MainWP Customisations plugin | |
// Download MainWP Customisations here: https://github.com/mainwp/mainwp-customisations | |
// More about the plugin: https://mainwp.com/mainwp-customisations/ | |
// Disable OpenSSL.cnf usage | |
if ( ! defined( 'MAINWP_CRYPT_RSA_OPENSSL_CONFIG' ) ) { | |
define( 'MAINWP_CRYPT_RSA_OPENSSL_CONFIG', false ); | |
} |
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 | |
// Use this snippet in the MainWP Code Snippets Extension (https://mainwp.com/extension/code-snippets/) | |
// Snippet Type: This Code Snippet only returns information from Child Site | |
wfConfig::set('touppPromptNeeded', 0); | |
// To reverse the update, use wfConfig::set('touppPromptNeeded', 1); |
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' | |
); |
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 | |
// Add the following code snippet to the functions.php file of the MainWP Customisations plugin | |
// Download MainWP Customisations here: https://github.com/mainwp/mainwp-customisations | |
// More about the plugin: https://mainwp.com/mainwp-customisations/ | |
// Create Custom Client Report tokens | |
add_filter( 'mainwp_client_reports_tokens_groups', 'mycustom_reports_tokens_groups' ); | |
function mycustom_reports_tokens_groups( $tokens ) { | |
// examples |
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 | |
// Add one of the following code snippet to the functions.php file of the active theme of your child site(s). | |
// Enable Support form for all roles | |
add_filter( 'mainwp_branding_role_cap_enable_contact_form', 'mycustom_mainwp_branding_role_cap_enable_contact_form' ); | |
function mycustom_mainwp_branding_role_cap_enable_contact_form( $input = false ) { | |
return true; | |
} |
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 | |
// Add the following code snippet to the functions.php file of the MainWP Customisations plugin | |
// Download MainWP Customisations here: https://github.com/mainwp/mainwp-customisations | |
// More about the plugin: https://mainwp.com/mainwp-customisations/ | |
add_action('admin_head', 'sticky_sidebar'); | |
function sticky_sidebar() { | |
echo '<style>.mainwp_select_sites_box { position: -webkit-sticky; position: sticky; top: 0; }</style>'; | |
} |
OlderNewer