Last active
December 23, 2015 19:09
-
-
Save scottnix/6680736 to your computer and use it in GitHub Desktop.
Remove Thematic Theme options from WP Admin but still allows site info to be modified from default text
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
// removes the Thematic Theme Options from the WordPress Admin Menu | |
function childtheme_opt_remove_page() { | |
remove_action( 'admin_menu', 'thematic_opt_add_page' ); | |
} | |
add_filter('thematic_child_init', 'childtheme_opt_remove_page'); | |
// modifies the site info text contained in the Theme Options | |
function childtheme_override_siteinfo() { | |
echo "Whatever you want"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a total "dick move" type of functionality. I imagine it would be used for adding self promotion and removing the ability of the user to change the site info/footer text (unless they do it within the functions.php.