Created
January 28, 2015 03:38
-
-
Save traversal/e57d96397172ca25c088 to your computer and use it in GitHub Desktop.
Force Template Change
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
// Add this to functions.php | |
function mp_template_change() { | |
echo "<script>jQuery( function($) { $('#mp-attributes select[name=page_template]').change(); } );</script>"; | |
} | |
add_filter("admin_head", "mp_template_change"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment