Elementor 开发者文档

title: "Register Theme Features" post_status: publish comment_status: open taxonomy: category: - elementor-developers-docs post_tag: - Hello Elementor Theme - Src - Repos


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' );