私は、ユーザーが「スーパー管理者」でない限り、Wordpressサイトの「サイトアイコン」を変更する機能を削除しようとしています。WordPressの「サイトアイコン」を変更する機能を削除するにはどうすればよいですか?
**/WP-含ま/にあります。私の最初の考えはここに、このコードスニペットを変更しようとしていたクラス-WP-カスタマイズ-manager.php
$this->add_setting('site_icon', array(
'type' => 'option',
'capability' => 'manage_options',
'transport' => 'postMessage', // Previewed with JS in the Customizer controls window.
));
$this->add_control(new WP_Customize_Site_Icon_Control($this, 'site_icon', array(
'label' => __('Site Icon'),
'description' => sprintf(
/* translators: %s: site icon size in pixels */
__('The Site Icon is used as a browser and app icon for your site. Icons must be square, and at least %s pixels wide and tall.'),
'<strong>512</strong>'
),
'section' => 'title_tagline',
'priority' => 60,
'height' => 512,
'width' => 512,
)));
しかし、私どのコア/配信ファイルも変更したくない。これを達成する他の方法はありますか?おそらくテーマのfunctions.phpファイルにありますか?
また、私は現在、WordPress 4.5.2とtwentytwelveテーマを使用しています。