remove_theme_support

Sponsored Link

特定のテーマの機能のサポートの登録を解除することをテーマが許可します。テーマのfunctions.phpファイルで呼び出す必要があります。一般的に親テーマからのサポートをオーバーライドするために子テーマで使用されるでしょう。

Sponsored Link

Allows a theme to de-register its support of a certain theme feature. Should be called in the theme’s functions.php file. Generally would be used for child themes to override support from the parent theme.

remove_theme_supportのファンクションタグ使用方法

<?php remove_theme_support( $feature ); ?>

remove_theme_supportのパラメーター

$feature

(string) (required) 機能の名前は、機能が削除されます。
デフォルト: なし

(string) (required) Name for the feature the feature being removed.
Default: None

戻り値

機能が削除されたかどうかにブール値を返します。

returns boolean value on whether the feature was removed

注意

変更ログ

Since: 3.1.0

ソースファイル

remove_theme_support()は、wp-includes/theme.php内に位置しています。

remove_theme_support() is located in wp-includes/theme.php.

関連ファンクションタグ

Theme Support: add_theme_support(), remove_theme_support(), current_theme_supports()
Theme Features: widgets, menus, post-formats, post-thumbnails, custom-background, custom-header, automatic-feed-links, editor-style

Sponsored Link