Skip to content

Instantly share code, notes, and snippets.

@scottnix
Last active December 23, 2015 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottnix/6680736 to your computer and use it in GitHub Desktop.
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
// 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";
}
@scottnix
Copy link
Author

scottnix commented May 2, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment