-
-
Save bastosmichael/7576664 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
echo 'This has been customized!!!'; | |
// Perform post-install customizations | |
if ( function_exists( 'add_action' ) ){ | |
add_action( 'wp_mail_content_type' , customize_install ); | |
function customize_install(){ | |
// Switch themes | |
switch_theme('twentytwelve'); | |
// Default the timezone | |
update_option( 'timezone_string', 'America/Chicago' ); | |
// Increase the Size of the Post Editor | |
update_option( 'default_post_edit_rows',40 ); | |
// Remove Hello Dolly | |
delete_plugins( array('hello.php') ); | |
// Remove default hello world post | |
wp_delete_post(1,true); | |
// Remove default sample page | |
wp_delete_post(2,true); | |
// Remove default Mr.Wordpress comment | |
wp_delete_comment( 1, true ) ; | |
// Activate Akismet | |
activate_plugin( WP_PLUGIN_DIR . '/akismet/akismet.php' ); | |
// Update Permalinks | |
update_option( 'selection','custom' ); | |
update_option( 'permalink_structure','/%post_id%/%postname%/' ); | |
global $wp_rewrite; | |
$wp_rewrite->flush_rules(); | |
// Prevent new website notice | |
global $phpmailer; | |
$phpmailer = new PHPMailer(); // reset | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment