Register Theme Features


目录

The theme registers various WordPress theme features. Developers can override this using a filter hook in a child-theme.

Hook Details

The hook controls whether the theme should register various theme features. By default it's set to true, however developers can prevent the theme from registering various theme features.

Usage

To prevent the theme from registering various theme features, use the following hook in a child-theme functions.php file:

add_filter( 'hello_elementor_add_theme_support', '__return_false' );

To register custom theme features, use the WordPress native add_theme_support() function as follows:

add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );

版本号 #2
由 壳壳虫 创建于 2026-03-26 17:08:44 UTC
由 壳壳虫 更新于 2026-03-26 17:08:44 UTC