-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Backport] Add wp_theme_element_class_name() alias
#3244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
e8f5210
68ffc05
33f1626
516777b
4c85024
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4203,6 +4203,20 @@ function wp_is_block_theme() { | |
| return wp_get_theme()->is_block_theme(); | ||
| } | ||
|
|
||
| /** | ||
| * Given an element name, returns a class name. | ||
| * Alias from WP_Theme_JSON::get_element_class_name. | ||
| * | ||
| * @param string $element The name of the element. | ||
| * | ||
| * @return string The name of the class. | ||
| * | ||
ockham marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * @since 6.1.0 | ||
|
||
| */ | ||
| function wp_theme_element_class_name( $element ) { | ||
|
||
| return WP_Theme_JSON::get_element_class_name( $element ); | ||
| } | ||
|
|
||
| /** | ||
| * Adds default theme supports for block themes when the 'setup_theme' action fires. | ||
| * | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.