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_file_uploader_allowed_file_types', 'mycustom_mainwp_file_uploader_allowed_file_types'); | |
function mycustom_mainwp_file_uploader_allowed_file_types( $types ) { | |
$types[] = 'htaccess'; | |
return $types; | |
} |
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 | |
/** | |
* Plugin Name: MainWP Hello World Extension | |
* Plugin URI: https://yourwebsiteurl.com | |
* Description: MainWP Hello World Extension is used for the demo. | |
* Version: 1.0 | |
* Author: Your Name | |
* Author URI: https://yourwebsiteurl.com | |
*/ |
OlderNewer