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 | |
/* | |
Installed themes: | |
Parent theme = Genesis version 1.9.1 | |
Child theme = Child version 1.0 | |
*/ | |
// EXAMPLE 1: | |
$theme = wp_get_theme( get_template_directory() ); |
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_action('activated_plugin','save_error'); | |
/** | |
* Place entire block of code at foot of wp-admin/includes/plugin.php | |
* Don't forget to remove code after use! | |
* | |
* Location of error_activation.html must be writeable, eg in your uploads folder somewhere | |
*/ | |
function save_error(){ | |
file_put_contents( ABSPATH . 'wp-content/{somewhere writeable}/error_activation.html', ob_get_contents() ); |
OlderNewer