Let your users pick a header, but not add one

WordPress 3.0 added the ability for themes to easily allow custom headers. Users could pick one that the theme shipped with, or upload their own. But what if you run a branded multisite instance where you don’t want your users to be able to upload their own, but you still want them to easily be able to pick one? Now in WordPress 3.1, you can do just that.

So how do we do this?

Just paste the following code in your theme (or child theme) functions.php file.

add_action(&#8216;init&#8217;, &#8216;jorbin_remove_custom_header_uploads&#8217;, 11);</p>
<p>function jorbin_remove_custom_header_uploads(){<br />
    remove_theme_support( &#8216;custom-header-uploads&#8217; );<br />
}

If that’s not easy enough, check out The remove custom header uploads plugin in the WordPress plugin directory


Posted

in

,

by

Comments accepted from Webmention and Pingback.

*/