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 | |
// 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); |
NewerOlder